Hi Ian,
thanks,
I saw the api docs and implemented it. thank you.

Is the opposite possible too?
like, i have a string like "<root><test>value</test></root>".
from this i want to get a node or element object (with all the 
the necessary tree structure).
this string i have is a part of a big xml doc, and it doesnt have
<?xml> tags. its just a string representation of a node.
Can u suggest any class or method that can do this?

Thanks
Naveen
--

On Tue, 24 Apr 2001 17:16:23  
 Ian Roberts wrote:
>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]
>
>


Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/

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

Reply via email to