XmlDocument

G

Guest

I am using an XmlDocument to save an data object hirachy to an Xml file. When
I rebuild the data object hirachy, I walk through the xml node in XmlDocument
and recreate the objects. How do I know the original data types for each
node. Can XmlDocument associates with a schema so that I can look up for the
original data type of an xml node (element)?
 
S

Sanjib Biswas

XmlDocument has a property call XmlSchemaSet. Along with the data you should
also save the schema in the XML file.
 
K

Kevin Spencer

Have you thought about simply serializing the classes as XML?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.
 
G

Guest

Assuming I know the name of a element/attribute, how do I get the data types
for the element/attribute from XmlSchemaSet?
 
G

Guest

Simple serialization contains too much information I don't need. Besides, I
am using Dictionary classes which is not capable of serialization.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top