Here is an example ant script to generate xmlbeans from XSD.
happy coding.
< ?xml version="1.0" encoding="UTF-8"?>
< project name="xmlbean" basedir="." default="xmlbean">
< echo message="${basedir}" />
< path id="xbean.path" >
< fileset dir="${basedir}\lib">
< include name="*.jar"/>
< /fileset>
< /path>
< echo message="${xbean.path}"/>
< taskdef name="xmlbean"
classname="org.apache.xmlbeans.impl.tool.XMLBean"
classpathref="xbean.path" />
< target name="xmlbean">
< xmlbean destfile="${basedir}\schema.jar" classpathref="xbean.path"
failonerror="true" javasource="1.5">
< fileset dir="${basedir}\schemas" casesensitive="yes">
< include name="*.xsd" />
< /fileset>
< /xmlbean>
< /target>
< /project>
Comments
Post a Comment