I'm assuming that what you want is to get is the text appearing inside
the "arg" element if there is any text. Remember that the text is not
the value of the element, but rather it is a child node of the element.
It is this child text node's value that you want to get.
In your case, you should get the children of the "arg" element node and
then test to see if that child list is empty.
Martin Waller wrote:
>
> Hello,
>
> If a node in my XML file is
>
> <arg/>
>
> and I do a node.getNodeValue I'm getting a segvio, is there a way to test if
> the node has a value before doing the getNodeValue ?
>
> Many thanks...
>
> Martin
--
____________________________________________________________
James Melton CyLogix
609.750.5190 609.750.5100
[EMAIL PROTECTED] www.cylogix.com