This content has been marked as final. Show 2 replies
Apache Digester is good for this sort of thing. It uses setter methods to populate your objects. You could also just use XML Serialization and deserialization. Or, you could go for something like JAXB or XMLBeans, whereby you actually will have classes generated for you from XML Schemas, and instances of those classes can marshall and unmarshall themselves quite easily
didn't knew there ware so many options avaible.
I choose XStream
a Note from their website: Notice that the fields are private.
XStream doesn't care about the visibility of the fields.
No getters or setters are needed. Also, XStream does not limit you to having a default constructor.
sweet!, that's just what I need.