Bhatia Saurabh (CHA) wrote:
Folks,
Can someone guide me on how to use org.exolab.castor.xml.schema.util.XMLInstance2Schema ? I am trying to create an xsd from my source xml and invoking this command line utility as follows:
java org.exolab.castor.xml.schema.util.XMLInstance2Schema "xml source file" "target xsd required"
I already have "castor-xml.jar" and "Xerces.jar" on my classpath but I always get these exceptions:
java.io.IOException: java.lang.NullPointerException at org.exolab.castor.xml.schema.util.XMLInstance2Schema.createSchema(Unknown Source) at org.exolab.castor.xml.schema.util.XMLInstance2Schema.createSchema(Unknown Source) at org.exolab.castor.xml.schema.util.XMLInstance2Schema.main(Unknown Source)
Would really appreciate any inputs.
Saurabh,
I just ran that utility from the command line just fine. Please post the exact command and CLASSPATH that you're using to execute this utility.
Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
The Castor Project http://www.castor.org/
Apache Geronimo http://geronimo.apache.org/
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
