Thanks.
Dp
Gareth Reakes wrote:
Hi,
On 12 Aug 2005, at 4:34, Dhirendra Pal Singh wrote:
Hi All,
I have the following xml...
<my-values name "value 1">
<value>http://127.0.0.1:9955</value>
</my-values>
You XML is not legal. Attributes have the form attr="value". Note the =
Now I can read all the attributes of my-values using getAttributes().
Then I can get a DOMElement to value too. But I am unable to get the
value of value which should be "http://127.0.0.1:9955" I have trying
to do it for last 4 hrs, and is unable to do it. Anyhelp would be
greately appreiciated.
Get the child of the element "value". The contents is not its value,
its a text node. You can also call getTextContent on the element.
Cheers,
Gareth
--
Gareth Reakes, Managing Director Parthenon Computing
+44-1865-811184 http://www.parthcomp.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]