Hi everyone,
I'm trying to read an xml config file in C#. To do this, I have used the
xsd.exe tool to create an xsd file from my xml, and to generate code to
read this xml file.
Here is a small sample of my xml file:
<feed>
<location>
<directory>data</directory>
</location>
<files>
<file>
<name>name</name>
</file>
</files>
</feed>
Whereas I'm able to read the directory value correctly, I cannot read the
value of name. After some searching, and after modifying the code a bit,
I found that the value for name wasn't even filled in the first place!
A coworker told me to look for problems with nested xsd's in Google, but
I was unable to find something useful.
The only thing I seem to be able to find, is an empty array of "file"
objects, which is not what I need (besides, there is one in the xml
file).
Can somebody point me in the right direction? Why is name not read during
the process of deserialization?
Thanks in advance,
JayCee
--
http://jcsnippets.atspace.com
a collection of source code, tips and tricks