//Instantiate an Xalan XML serializer and use it to serialize the output DOM to System.out
// using a default output format.
Serializer serializer = SerializerFactory.getSerializer
(OutputProperties.getDefaultMethodProperties("xml"));
serializer.setOutputStream(System.out);
serializer.asDOMSerializer().serialize(domResult.getNode());
}
else
{
throw new org.xml.sax.SAXNotSupportedException("DOM node processing not supported!");
}