Generating xsd from xml

I have a xml and would like to generate a xsd for it. I don't want to use XML Spy. Is there any other open source tool to do this ? Thank You,Prasahant
[174 byte] By [prashant_ska] at [2007-10-3 6:02:14]
# 1
Use Stylus studio. http://www.stylusstudio.com/autogen_xsd.html
dvohra09a at 2007-7-15 0:44:24 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

There's a nifty online tool here: http://www.flame-ware.com/xml2xsd/

I've seen this referred to as "infering" an XSD from an XML document.

I guess there's problems with converting in this direction. If your document 'unicycle.xml' has one element <wheel> then the inferring logic will have no way of knowing that wheel should be a repeating element, and so 'car.xml' will not validate against the inferred XSD. Still, it's can be handy as a starting point when developing XSDs.

But did anyone create anything like this in java? My search is turning up a lot of .NET (C#) code.

Harry-Wooda at 2007-7-15 0:44:24 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...