File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes have node object, need to view it's xml? 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 "have node object, need to view it Watch "have node object, need to view it New topic
Author

have node object, need to view it's xml?

Mark Lybarger
Ranch Hand

Joined: Dec 19, 2003
Posts: 72
i have a node from the result of an xpath expression. i want to see the entire node string. for example. the node is xml is:

and for an xpath expression of /data/foo, i get back a node list. i want to see:

how can i display this from the result? i'm using jaxen for the xpath expression evaluator, and getting a w3c node back. i can certain convert to another node type if it's easier.

thanks!
Mark Lybarger
Ranch Hand

Joined: Dec 19, 2003
Posts: 72
google. groups turned up something that does the trick:
 
 
subject: have node object, need to view it's xml?
 
Similar Threads
XSLT/XPath - Find unique text node value
Regex for adding CDATA to XML nodes
How to update/insert/delete an element from an XML document
XPath: Check if a node actually exists
Generating classes