Converting XML to Java objects -


What is the best way to convert XML into a Java object?

Like representation, but want to pull out some data from XML and want to populate a Java object I had a look at Xstream, but in fact the whole "down side, like stuff" above While writing converters, I prefer a dom object ...

I know that everyone Like automatic solutions like jackbase and so on, but i have hand coding javax.xml.bind.Marshaller and j Avax.xml.bind.Unmarshaller which you would like to receive properly without filling your Perm Gen Space, use the JDOM to analyze the XML unnecessarily and use the XP object Map the values ​​in Java objects using This will be some time to do this once, but you will need exactly what you need and nothing else.


Comments