InterviewSolution
You should use a DOM 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
Your experience on this site will be improved by allowing cookies. Read Cookie Policy