Monday 16 June 2014

XML to XSD , XSD Generator


XSD Generation:

If you have sample XML File with test data then generate the XSD automatically with some tools which was provided by MICROSOFT.
Please download the xsd.exe file or you can download from here xsd.exe; (Google for xsd.exe )

How to  use this tool:

The XML Schema Definition (Xsd.exe) tool generates XML schema or common language runtime classes from XDR, XML, and XSD files, or from classes in a runtime assembly.

xsd file.xdr [/outputdir:directory][/parameters:file.xml]

xsd file.xml [/outputdir:directory] [/parameters:file.xml]
xsd file.xsd {/classes | /dataset} [/element:element]
             [/enableLinqDataSet] [/language:language]
                          [/namespace:namespace] [/outputdir:directory] [URI:uri]
                          [/parameters:file.xml]
xsd {file.dll | file.exe} [/outputdir:directory] [/type:typename [...]][/parameters:file.xml]

For more details please  look into this website :



How to change datatype  in xsd :

  1. Open the xsd in eclipse
  2. Open in design mode .

No comments:

Post a Comment

Please comment here