Sampath K Settipalli wrote:
>     Is there any thing in Xerces similar to TXDocument.toXMLString()  so
> that we can use the returned String to write to a File ?

You can use org.apache.xml.XMLSerializer to serialize a Document, i.e.:
XMLSerializer serializer = new XMLSerializer(System.out, new
OutputFormat(doc));
serializer.asDOMSerializer();
serializer.serialize(doc);

Also, Xerces provides implementation [1] for DOM Level 3 Load and Save
[2]. This API allows you to load and serialize document.

Note: DOM Level 3 is a Working Draft, which represents work in progress
and thus the API may be changed.

For more information see DOM3.java sample [3].

[1] http://xml.apache.org/xerces2-j/faq-write.html#faq-1 
[2] http://www.w3.org/TR/2002/WD-DOM-Level-3-LS-20020725/

[3] http://xml.apache.org/xerces2-j/samples-dom.html#DOM3


-- 
Elena Litani / IBM Toronto

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

Reply via email to