How to deserialize xml to object [duplicate]
Your classes should look like this Here is my testcode. If you want to read a text file you should load the file into a FileStream and deserialize this.
Your classes should look like this Here is my testcode. If you want to read a text file you should load the file into a FileStream and deserialize this.
This is a great module that someone created. I’ve used it several times. http://code.activestate.com/recipes/410469-xml-as-dictionary/ Here is the code from the website just in case the link goes bad. Example usage: //Or, if you want to use an XML string: