OK so im new to XML i want to save lots of serialized objects to XML then read the objects back in from the xml with ease using the get and set methods i have in place, is they any real easy way of doing this?
thanks in advanced
Houlahan.

Recommended Answers

All 2 Replies

jDom and Dom4j are pretty generic libraries aimed at easing the interaction with DOM. There is a class of libraries called O/X Mappers aimed specifically at object to xml conversion and vice-versa.

Look into libraries like Jaxb, XStream, XMLBeans, JiBX for more details. Of the ones mentioned, JAXB is a Sun initiative and has a pretty good standard acceptance. XStream seems to be pretty easy to use in case you have simple O/X mapping needs. Play around with those you'd surely find something which suits your needs.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.