Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XmlBeans - Creating an XSD from an XML file

 
Jennifer Moran
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seamus -

You are a savior!!!

Thank you

Jennifer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic