File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
XML and Related Technologies
Type of tree in DOM parser
Joined: Jan 15, 2004
Apr 01, 2008 00:40:00
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?
Author and all-around good cowpoke
Joined: Mar 22, 2000
Apr 01, 2008 07:17:00
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.
It is sorta covered in the
JavaRanch Style Guide
subject: Type of tree in DOM parser
convert javaobjects to xml and xml to java objects dynamically
Axis and Apache soap
what is SAX (event-based) parsing ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014