On Tue, 24 Apr 2001, Naveen Srinivasa Murthy wrote:

> Im noticing that the Node.toString() is returning empty string. I
> have a node which is a tree of various elements and I expected
> the node.toString() to give me a string 
> like "<root><test>value</test></root>". but it is not happening and
> i get an empty string.
> 
> im a previous project I used jaxp.jar and parser.jar to do xml
> parsing, and when i use these jars Node.toString() gives me
> the xmlstring representation of the node.
> 
> Can u suggest me any workaround to get a similar functionality just
> as the node.toString()? or is xerces supporting toString() in a 
> diff way or diff method call?

org.apache.xml.serialize.XMLSerializer does what you want.  There have
been a number of code examples posted here in the past, if you need them.

Ian

-- 
Ian Roberts, Software Engineer        DecisionSoft Ltd.
Telephone: +44-1865-203192            http://www.decisionsoft.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to