You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Tobias McNulty <tm...@datadesk.com> on 2001/12/13 22:16:09 UTC
Node values
Say I have an XML file:
<root>
sometext
<anothernode>sometext2</anothernode>
</root>
Shouldn't the value of the root element be "sometext" ?
getNodeValue() only returns the text value of the node if I place it
_after_ all other children of the node, like this:
<root>
<anothernode>sometext2</anothernode>
sometext
</root>
Is this how it's supposed to work? Also, is there a function in
Xerces for obtaining the index of a node in its parent, or do I just
have to iterate through a NodeList and see if my two Node references
are equal (==) ?
Thanks,
Toby
--
Tobias McNulty
Data Description, Inc.
840 Hanshaw Road, Suite 9
Ithaca, NY 14850
Phone: (607) 257-1000
E-mail: tmcnulty@datadesk.com
Web: www.datadesk.com
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org