aspose file tools*
The moose likes XML and Related Technologies and the fly likes XmlBeans - Creating an XSD from an XML file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XmlBeans - Creating an XSD from an XML file" Watch "XmlBeans - Creating an XSD from an XML file" New topic
Author

XmlBeans - Creating an XSD from an XML file

Jennifer Moran
Ranch Hand

Joined: Oct 21, 2002
Posts: 60
I have a third party vendor that I am retrieving data from via XML.

Their XSD document is old and does not reflect the current schema that is in the XML file they are sending back via a query. I have tried asking for an updated XSD but that was four months ago and I still have not received anything.

I am also using the XmlBeans utiltiy.

Is there anyway to take that XML file that they are sending and create an XSD??? Either in XmlBeans or some other utility???

Thanks in advance,

Jennifer
Seamus Minogue
Ranch Hand

Joined: Jun 24, 2008
Posts: 41
http://www.thaiopensource.com/relaxng/trang.html

this should do the trick :-)

Usage:
$ java -jar /s/java/lib/trang.jarxmlfile.xml xsdfile.xsd
Jennifer Moran
Ranch Hand

Joined: Oct 21, 2002
Posts: 60
Seamus -

You are a savior!!!

Thank you

Jennifer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XmlBeans - Creating an XSD from an XML file