After years of using the DTD method for building XML docs, I now need to hand off to someone else a schema they need to use to build the doc to send back to me.
I've been hunting through the documentation to find something to explain how, given just a schema, to use it to build an XML document with data content populated from C# (not Web) application. I've found plenty of entries on how to load an XML Doc and validate it against the schema, but nothing about having a schema and using it to build an XML Doc then send it off.
You can do this very easily by simply opening the XSD file in the VS 2010 CTP which will open it in the XML Schema Designer. Selecting any possible root node from the XML Schema Explorer tree and right-click on it and select "Generate Sample XML".
Hopefully this is what you are looking for.
Friday, November 07, 2008 2:53 AM
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.