• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wat does getNodeValue() in DOM parser returns??

 
Arjun Karthick
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
When i use the getNodeValue method to get the value of the Node i get only part of the value. Need to know if the special charactor

The code to get the value.


The XML Node is :


The expected value : //*[@id='secinfo']/child::*/text()
The value i get is : //*[@ID='secinfo']

Can someone kindly let me know, the reason for this

Thanks
Arjun
 
Paul Clapham
Sheriff
Posts: 21116
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the next sibling of that node another text node with the rest of the text?
 
Arjun Karthick
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No it was my mistake.
The code was wrong.

Apologize for posting without enough analyze.
have to improve my debug skill.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic