I am using this link to generate XML file using DOM. It says that \"Xerces parser is bundled with the JDK 1.5 distribution.So you need not download the parser separately.\"<
It will be in, IIRC, com.sun.org.apache.xml.serialize.XMLSerializer. However, those are private classes and likely to change at any time. I suggest using the standard public APIs (javax.* and friends) instead. (Use the transform API without any XSLT.)