I am writing a function to import XML files into my Java application. I use XOM to parse XML files. The code for parsing XML is not easy to understand, it is incorrect code, .getChild(3)and so on. It is difficult to execute the code compared to a declarative XML document.
Is there a more convenient way to parse XML documents for Java objects? I would like to have it in a more declarative way, where I can specify which tags correspond to those Java classes.
Jonas source
share