Showing posts with label XML. Show all posts
Showing posts with label XML. Show all posts

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 .

Saturday, 30 June 2012

How to call Customized xml file as pom file in maven


Actually we will use "pom.xml" as the file name for maven default framework.
But we can also change the name or we can call our own xml file as pom file in maven.

in order to call own xml file in maven:

mvn -f own.xml clean install