Hello all,

I have a requirement to create XML schema from an XML file inside my application, which I am developing using c#(VS 2008).

the XML file is also being created by the same application.

When I open this XML in visual studio and use the XML schema tool bar icon to create the XML schema, I get a Schema file which serves my purpose. But I am not sure how to achieve this programatically using c#. Could some one help me to achieve this?

On the other hand, I came across a windows utility called XSD.exe, which also creates an XML Schema from an XML file. But this Schema file is not the same as what i get of XML schema creation tool in Visual studio....

Could some one help me understand the difference?

Regards

RadKrish