Last post Jan 21, 2015 09:15 AM by softech.employee
Member
72 Points
149 Posts
Jan 21, 2015 07:10 AM|softech.employee|LINK
Hi,
i want to generate an xml by following the uploaded xml schemas. please see at here.
how can i start to write that xml programatically.
thanks
All-Star
35149 Points
9075 Posts
Jan 21, 2015 07:18 AM|smirnov|LINK
Read Generating XML Documents from XML Schemas
In general, to make a document based on schema you need
XmlTextWriter textWriter = new XmlTextWriter("po.xml", null); textWriter.Formatting = Formatting.Indented; XmlQualifiedName qname = new XmlQualifiedName("PurchaseOrder", "http://tempuri.org"); XmlSampleGenerator generator = new XmlSampleGenerator("po.xsd", qname); genr.WriteXml(textWriter);
Jan 21, 2015 09:15 AM|softech.employee|LINK
thank you smirnov
Member
72 Points
149 Posts
write xml from xml schema?
Jan 21, 2015 07:10 AM|softech.employee|LINK
Hi,
i want to generate an xml by following the uploaded xml schemas. please see at here.
how can i start to write that xml programatically.
thanks
All-Star
35149 Points
9075 Posts
Re: write xml from xml schema?
Jan 21, 2015 07:18 AM|smirnov|LINK
Read Generating XML Documents from XML Schemas
In general, to make a document based on schema you need
Member
72 Points
149 Posts
Re: write xml from xml schema?
Jan 21, 2015 09:15 AM|softech.employee|LINK
thank you smirnov