How to generate XML Schema from XML file?

22 11 2009


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.

Advertisements

Actions

Information

One response

23 11 2009
Ben L

Nice tip. I don’t use the command window enough.
I believe this feature is also on the XML editor toolbar as a button.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: