What is the best command line xsd generator tool in java. I want to read some xhtml page online and generate xsd programmatically so that I can use jaxb to unmarshal the xhtml document .
Comparions of the available tools including xmlBeans, xml2xsd,oxygenxml, stylus studio , Trang etc.
Thanks a lot in advance
Why generate it? XHTML is well-defined. Use this XSD here:
http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd
From this XSD, you can generate JAXB-annotated POJO’s using XJC. Some documentation can be found here:
http://docs.oracle.com/javase/6/docs/technotes/tools/share/xjc.html
I don’t think there’s any need for a discussion about a “best” tool, as XJC is a Java reference implementation for such a tool