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.
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)
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?.
精彩评论