PL first check if the node has child nodes. if it has child nodes then
we can't get the nodeValue. In that case we can only get the list of
child elements.
If the node is a text node then only we can get its value.Then we have
to add a check for a text node then get the value.
You can use the check like if (node==Node.TextNode) then statements;
Please note that text nodes are created using statements like var
theText4 = document.createTextNode(' in your document');
Pl try this and let me know.
If problem is not resolved then send me source code and the line
giving the problem.
On Jan 12, 1:37 am, Cattivik <[email protected]> wrote:
> I have a big problem!!
> I want to get e value of dom document Node with getNodeValue() but it
> does't work.
>
> Example:
> Node node = childs.item(i);
> String value = node.getNodeValue()
>
> Please HELP!!!
> It is urgent
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---