Re: Deserialize from SelectSingleNode
From: Geoff (geoffbishop_at_gmail.com)
Date: 11/19/04
- Next message: Vish: "Help.....XMLDataDocument Schema"
- Previous message: James Ankrom: "Variety of XML questions;"
- In reply to: Derek Harmon: "Re: Deserialize from SelectSingleNode"
- Next in thread: Geoff: "Re: Deserialize from SelectSingleNode"
- Messages sorted by: [ date ] [ thread ]
Date: 19 Nov 2004 09:02:47 -0800
OK. I got this working finally! Cool. Thank you.
The Serializer.Deserialize() method kept giving me "XXX was not
expected."
I thought it was talking about the namespace for XXX, but it was
actually complaining about the entire element. Why?... Apparently
because my class name didn't exactly match the element in the XML
file.
Unfortunately, my class name was generated from an XSD file for the
XML file I'm working with. The class name has the form AAABBBCCC,
where the actual element I'm interested in, CCC, is nested under
elements AAA and BBB. I really don't want to change it, to match the
element, because if the XSD changes in the future, I will use the
xsd.exe tool to regenerate the classes, and any manual changes I've
made will get blasted.
Maybe there is an option for xsd.exe to generate class names which
match the element names, or maybe there is a way to do the
Deserialize() without the names matching. ???
- Next message: Vish: "Help.....XMLDataDocument Schema"
- Previous message: James Ankrom: "Variety of XML questions;"
- In reply to: Derek Harmon: "Re: Deserialize from SelectSingleNode"
- Next in thread: Geoff: "Re: Deserialize from SelectSingleNode"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|