XML deserialization doesn't read in second level
Posted
by Andy
on Stack Overflow
See other posts from Stack Overflow
or by Andy
Published on 2010-05-24T22:19:33Z
Indexed on
2010/05/24
22:21 UTC
Read the original article
Hit count: 515
Sorry if the title doesn't make much sense, but I'm not too familiar with the terminology.
My question is: I have a config.xml file for a program I'm working on. I created an xsd file by 'xsd.exe config.xml'. I then took this xsd and added it to the solution in visual studio. My last step used a program called xsd2code that turned that xsd file into a class I can serialize too.
The problem is it doesn't read more then a layer deep in the xml tree. By this I mean the elements in the root node get deserialized into my object, but those that are in a node inside the root node are not. I found this out by putting a breakpoint after the deserialization and looking at my object.
Any Ideas? Let me know if this needs some clarification or you need a snippet of something.
© Stack Overflow or respective owner