Java XML DOM Parser Overview


  1. The Document Object Model (DOM) is an official recommendation of the World Wide Web Consortium (W3C).
  2. The DOM is the easiest to use Java XML Parser. 
  3. It parses an entire XML document and load it into memory, modeling it with Object for easy nodel traversal. 
  4. DOM Parser is slow and consume a lot memory if it load a XML document which contains a lot of data.
Java XML DOM Parser overview

When to use

You should use a DOM parser when −
  1. You need to know a lot about the structure of a document.
  2. You need to move parts of an XML document around.
  3. You need to use the information in an XML document more than once.

Important class and interface:

  1. DocumentBuilderFactory(C)
  2. DocumentBuilder(C)
  3. Document(I)
  4. Element(I)
  5. NodeList(I)
  6. Node(I)
  7. NamedNodeMap(I)
  8. Tranformer(C)
  9. TransformerFactory(C)
  10. DOMSource(C)
  11. StreamResult(C)
C- Class, I - Interface

Questions :

Don't forget to check top 40 problems with solution on Date and Time - Click Here

Thank you friends. If you have any doubt, suggestion or query please feel free to comment below.

About Author:

I am simple guy with lot of ambitions. My main motive is to share whatever knowledge I have related to programming. With me you can easily learn how to solve any programming problem in Java.You can connect with me on social networking sites also.

Let's Get Connected: Linkedin | Facebook |

Java XML DOM Parser Overview Java XML DOM Parser Overview Reviewed by Rohit Agarwal on 10/14/2017 Rating: 5

No comments:

Please provide your valuable comments. If you have any suggestion please share with me I will work on it and if you have any question or doubt please ask, don't hesitate. I am your friend, i will clarify all your doubts.

Powered by Blogger.