• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Type of tree in DOM parser

 
Anand Kapadi
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The DOM parser loads the xml file into a tree.I want to know what kind of tree is constructed in this case.Is it a balanced tree or any other kind of tree?
Can anyone please provide some input?
Thanks,
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The tree constructed is an exact duplicate of the XML document tree structure (including many nodes you may not be expecting). Nothing magic is going on to rearrange any data.

I suggest you become VERY familiar with the javadocs for org.w3c.dom - especially the Node interface and the very useful table in the Node javadocs.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic