tags:

views:

156

answers:

3

I know examples but there are not free tools. Need one that is free and reliable. Thanks!

+7  A: 

You can use XSD.exe, which is part of the Microsoft .Net SDK.

http://www.microsoft.com/downloads/details.aspx?FamilyID=fe6f2099-b7b4-4f47-a244-c96d69c35dec&displaylang=en

A sample usage of this tool would be (from the command line):

xsd.exe MySchema.xsd /classes /namespace:My.Schema.Namespace

which would output a class file MySchema.cs which contained the generated code for your schema. It can also output a VB or CPP file if you specify the language flag.

womp
Just what I was about to say ;-p
Marc Gravell
I am not familiar with .NET platform at all, could you say how I should use XSD.exe if I have installed the platform? Thanks.
Narek
Google for XSD.exe. More than enough information on MSDN and lots of other sites...
markus
Narek I was just editing my answer to provide an example. See if that helps.
womp
For more info on using the XSD tool check out this MSDN page: http://msdn.microsoft.com/en-us/library/x6c1kb0s.aspx
Ahmad Mageed
AFAICT Microsoft's XSD cannot generate C++, just .net languages.
danio
+2  A: 

I am not sure what type of "free" you are looking for but I have used the open source codesynthesis xsd tool www.codesynthesis.com/products/xsd/ for c++ data binding.

ridale
btw it costs money for commercial use.
danio
+1  A: 

check out freeware: http://sourceforge.net/projects/xmlplus/

Satya Prakash Tripathi
Thanks and +1 vote for you.
Narek