Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What's wrong with getChildNodes()?

Status
Not open for further replies.

NMDUC

Programmer
Mar 4, 2006
61
VN
Hi,
I am reading the source code of one research. And I think there is something wrong with getChildNodes() when I parse the source code.
For example, we have this tree
note
/ / \ \
to from heading body
| | | |
Tove Jani Reminder I forget

If the current node is note, the statement currNode.getChildNodes() should return nodes such as to, from, heading,... But what I get is note.

Am I wrong? May you explain it to me, please? I use Xerces.

Thank in advance.
Duc
 
The currNode can't be note then. The current node is probably the root, the child of which is note.

Jon

"I don't regret this, but I both rue and lament it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top