Monday, January 28, 2002 05:11 AM
use org.apache.xml.serialize.XMLSerializer ( in xerces.jar ). This code may help you
// element is the element node that needs to be serialized.
// writer is an object of subclass of Writer ( too many choices !! )
// format is instance of org.apache.xml.serialize.OutputFormat
XMLSerializer serial = new XMLSerializer(writer, format);