This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • 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
Pie
Posts: 20764
30
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