Gold mine of Visual C++ tricks!
How to generate XML Schema from XML file?
![]()
Ever wondered how to generate XML schema from XML file?
Indeed, a lot of 3ed party tools can do it for you. But as usual, any easy way?
![]()
You can use Visual Studio IDE itself to generate XSD from XML file. Follow the steps.
1) Open the XML file in Visual Studio IDE.
2) Take View > Other Windows > Command Window.
3) Now type and execute command – XML.CreateSchema
4) See, the schema is generated.
![]()
A hidden pearl in VS IDE. Isn’t it?
![]()
Targeted Audience – Beginners.
| Print article | This entry was posted by Jijo Raj on November 22, 2009 at 4:55 pm, and is filed under Visual Studio. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |




about 9 months ago
Nice tip. I don’t use the command window enough.
I believe this feature is also on the XML editor toolbar as a button.
about 8 months ago
Thanks for sharing this with us.
about 8 months ago
I am frequently searching for recent infos in the net about this topic. Thanx.