XsdGen

Description

Task to generate xsd schema file from xml file, using xsd-gen tool.

XsdGen task parameters

Attribute Description Value Required
file The input file yes
tofile The output file yes

Examples


<project name="xsdgen task"> 

  <taskdef name="xsdgen" 
     classname="net.sourceforge.ant4x.taskdefs.xml.XsdGenTask" 
     classpath="PATH/TO/ant4x.jar"/> 

  <target name="xsdgen"> 
    <include file="in.xml" tofile="out.xsd" />
  </target> 

                    </project>