* @param w The writer to use.
*
* @throws IOException should an I/O exception occurs.
*/
public SmartXMLFormatter(Writer w) throws IOException {
this.xml = new XMLWriterNSImpl(w, false);
if (this.writeXMLDeclaration) {
this.xml.xmlDecl();
this.writeXMLDeclaration = false;
}
this.xml.setPrefixMapping(Constants.BASE_NS_URI, "dfx");