Aitor
Aitor

Reputation: 3429

XML to XSD tool for linux

What's the best tool out there to create (or to infer) an XSD schema from XML document? I need it to be linux-compatible.

Upvotes: 14

Views: 15363

Answers (2)

Sam
Sam

Reputation: 6250

In the past I have used Trang : http://www.thaiopensource.com/relaxng/trang.html

Its old and basic but i find it generates cleaner schemas than other tools (e.g. XMLSpy)

Upvotes: 20

marc
marc

Reputation: 6223

You can create a DTD from XML using DTDGenerator from the saxon project. Then you can convert this to a XSD using W3C's dtd2xsd.pl. See Free DTD to XSD conversion utility?.

Upvotes: 3

Related Questions