my dog learned polymorphism*
The moose likes XML and Related Technologies and the fly likes Type of tree in DOM parser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Type of tree in DOM parser" Watch "Type of tree in DOM parser" New topic
Author

Type of tree in DOM parser

Anand Kapadi
Greenhorn

Joined: Jan 15, 2004
Posts: 26
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

Joined: Mar 22, 2000
Posts: 12761
    
    5
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
 
 
subject: Type of tree in DOM parser
 
Similar Threads
convert javaobjects to xml and xml to java objects dynamically
Tree Structure
Axis and Apache soap
XPath Technology
what is SAX (event-based) parsing ?