><?xml version='1.0' encoding='ascii'?>
><root>
> <surname>abcdef</surname>
> <properties>
> <propone>aaaa</propone>
> <proptwo>bbbb</proptwo>
> </properties>
></root>
1) The first child of your properties node is almost certainly a Text node
containing the whitespace between the <properties> tag and the <propone>
tag. Check its nodeType, and if it that's the case you'll use this node's
getNextSibling() operation to advance to the next child -- which should be
the propone element you were looking for.
2) getChildNodes lists only the immediate children of a node -- but it will
include the Text nodes which represent white space between elements. That's
almost certainly what you're seeing.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]