Creating Java classes from an XML file

How can I get java classes from xml file?

In this situation, I don't have an XML schema , and I cannot use JAXB, Castor, or another xml binding API as far as I know.

+4
source share
3 answers

You can generate a schema from an XML file using certain tools . Then create your Apache XMLBEANS classes.

+6
source

XStream is great for XML objects -> and vice versa. It works quickly, easily and well without any circuitry.

+1
source

Altova is also best at creating Java classes from XML / XSD

-1
source

Source: https://habr.com/ru/post/1304146/