Useful if you're unmarshalling JAXB objects or extracting data from a large file, not so useful if you're exploring a data structure.
The downside of DOM, of course, is that it's all in memory, and the DOM implementation adds quite a bit to the memory footprint of the data.
The XML specification requires that an XML document either have a prologue that specifies its encoding, or be encoded in UTF-8 or UTF-16.I haven't evaluated dom4j by myself but just wanted to know - Do java has other (Good) open source xml...I've dealt with a few XML APIs in Java, but I don't have a good understanding of all the frameworks available in Java for dealing with XML for whatever purpose (e.g. Can anyone highlight the most popular Java XML APIs and give a quick description of what they're intended to be used for?*/ Validating(false); /* This should be the default, but let's be safe and try and disable it.* We also have to cater for older XML parsers that do not support this.