Home All Groups Group Topic Archive Search About
Author
11 Jul 2006 12:38 PM
Roy
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)?

Author
11 Jul 2006 12:57 PM
Sanjib Biswas
XmlDocument has a property call XmlSchemaSet. Along with the data you should
also save the schema in the XML file.

Show quote
"Roy" <R**@discussions.microsoft.com> wrote in message
news:0CEAFDC0-C3C5-43D7-99CF-92F166D66CBA@microsoft.com...
>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)?
Author
13 Jul 2006 2:09 AM
Roy
Assuming I know the name of a element/attribute, how do I get the data types
for the element/attribute from XmlSchemaSet?

Show quote
"Sanjib Biswas" wrote:

> XmlDocument has a property call XmlSchemaSet. Along with the data you should
> also save the schema in the XML file.
>
> "Roy" <R**@discussions.microsoft.com> wrote in message
> news:0CEAFDC0-C3C5-43D7-99CF-92F166D66CBA@microsoft.com...
> >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)?
>
>
>
Author
11 Jul 2006 6:53 PM
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.


Show quote
"Roy" <R**@discussions.microsoft.com> wrote in message
news:0CEAFDC0-C3C5-43D7-99CF-92F166D66CBA@microsoft.com...
>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)?
Author
13 Jul 2006 2:11 AM
Roy
Simple serialization contains too much information I don't need. Besides, I
am using Dictionary classes which is not capable of serialization.

Show quote
"Kevin Spencer" wrote:

> 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.
>
>
> "Roy" <R**@discussions.microsoft.com> wrote in message
> news:0CEAFDC0-C3C5-43D7-99CF-92F166D66CBA@microsoft.com...
> >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)?
>
>
>

AddThis Social Bookmark Button