Question
I need to make the above equation comes true!
I have an XML file with its XSD schema, and I need to get the Java classes with the required code to parse the XML file and construct java objects..
I am asking here about a standard (or defacto like apache) utility to make the above request comes ture....
Is JAXB can make this happens?
Thanks.
Solution
Sounds like you want JAX-B, the Java XML-to-object binding API.
OTHER TIPS
You need a library to compile the xsd into Java types. JAXB and XMLBeans are two such libraries.
With XMLBeans you can run a simple command to generate the Java types:
scomp -out types.jar myschema.xsd
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow