aspose file tools*
The moose likes XML and Related Technologies and the fly likes wat does getNodeValue() in DOM parser returns?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "wat does getNodeValue() in DOM parser returns??" Watch "wat does getNodeValue() in DOM parser returns??" New topic
Author

wat does getNodeValue() in DOM parser returns??

Arjun Karthick
Ranch Hand

Joined: Jan 04, 2007
Posts: 77
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
Bartender

Joined: Oct 14, 2005
Posts: 18902
    
    8

Is the next sibling of that node another text node with the rest of the text?
Arjun Karthick
Ranch Hand

Joined: Jan 04, 2007
Posts: 77
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
 
subject: wat does getNodeValue() in DOM parser returns??