Possible Duplicate:
How to generate sample XML documents from their DTD or XSD?
I know that visual studio 2010 can generate sample XML document from an XSD schema, but there is no documentation to show how to do that programmatically. Does anyone have hints on how to accomplish this in C#? Thanks.