I have a couple of XML files that I need to work with, and I\'ve always used the XElement objects and pulled the data via the attribute name or the XElement\'s value.
<
You can use xsd.exe (which installs with the windows SDK, but in various locations depending on version - mine is currently in C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin) to generate and xsd from the file, or a cs code file.
For example:
xsd.exe myFile.xml
will get you myFile.xsd in the location of the xml file.
Then,
xsd.exe myFile.xsd /c
will get you a .cs file with the classes defined. Try xsd.exe /? for full options (you can specify namespaces, etc. as well).