I'm still learning C#..I'm developing an academic project to pick the players for a team
from the pool of available players. The players database will be given
in an xml file will be something like this.
I'm planning to develop a BCL for creating an array of objects by
reading this xml file; with each object representing each player. So
that if I'm a coach, I can pick the player according to my wish. Please
give me any suggestions on this project.Any help in reading xml is also appreciated.
To do this what all I need to learn? -reading XML -developing .net components (BCL) -what concepts in particular in C#?
----------------------------------------------------------------------- -regards Shashank D
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Sam HobbsRank #107 · 20.5K reputationPosted Mar 23, 2010, 5:41 PM EDT
✓ Accepted answer0
There are multiple ways to read and write XML. My favorite is the XmlSerializer class. You can find samples of it in my previous posts in these forums. Then there are the XmlReader and XmlWriter classes. Also, it is possible to read a single table into a DataTable using DataTable.ReadXml and ReadXmlSchema and write using WriteXml and WriteXmlSchema, but I think you will need at least two tables; one for players and another for player's positions. Investigate those options and if you want to choose one then someone can help you wit details. Be sure to look at the articles in this web site for whatever help they provide.
Sam HobbsRank #107 · 20.5K reputationPosted Mar 23, 2010, 5:41 PM EDT
Investigate those options and if you want to choose one then someone can help you wit details. Be sure to look at the articles in this web site for whatever help they provide.
Shashank3 reputationPosted Mar 23, 2010, 8:43 PM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Mar 23, 2010, 10:09 PM EDT