InterviewSolution
You should use a DOM4J parser when −
You need to know a lot about the structure of a document
You need to move parts of the document around (you might want to sort certain elements, for example)
You need to use the information in the document more than once
You are a java developer and want to leverage java optimized parsing of XML.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy