File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wat does getNodeValue() in DOM parser returns??

 
Arjun Karthick
Ranch Hand
Posts: 77
  • 0
  • 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: 20209
26
MySQL Database
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic