Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: use section of XML as source/destination of XmlSerializer? use section of XML as source/destination of XmlSerializer?To: NULL Date: 3/11/2009 9:13:00 AM I have an Xml file that I use as a database of information about a
manufactures products. It has the format:
<Manufacturer>
<Products>
<Product id="1" name="product a" price="1.00" />
...
</Products>
<Suppliers>
<Supplier id="1" name="supplier x" />
...
</Suppliers>
</Manufacturer>
I would like to be able to use the Suppliers node as the source for the
XmlSerializer's Deserialize and Serialize methods. I figure that I can load
an XmlDocument, then select the Suppliers node using an Xpath query
(//Supplers). The question is how to send this to the XmlSerialier.
Moreover, what approach should it take for the serialization?
Any thoughts would be appreciated.
Thanks,
Craig Buchanan
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
