| Author |
Converting an XML Node to XML String/Text
|
Krysty Sullivan
Ranch Hand
Joined: Jun 06, 2002
Posts: 48
|
|
How do I convert a Node to its corresponding XML Text or String? Node pageNode = pageNodeList.item(0); //How can pageNode be converted to XML String (e.g. <param><page>2</page></param> ?
|
 |
Dan Drillich
Ranch Hand
Joined: Jul 09, 2001
Posts: 1121
|
|
The interface Node has the method getNodeValue() which returns a String. I guess this is what you are after. Cheers, Dan
|
William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
|
 |
Ajith Kallambella
Sheriff
Joined: Mar 17, 2000
Posts: 5782
|
|
Try this. But you will need Xerces.
|
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
|
 |
 |
|
|
subject: Converting an XML Node to XML String/Text
|
|
|