Configured by overriding protected methods:
protected void printDeclaration(Document doc, PrintWriter out) {}
protected void printDocType(DocType docType, PrintWriter out) {}
protected void printProcessingInstructions(List pis, PrintWriter out) {}
protected void printElement(Element element, PrintWriter out, int indentLevel) {}
protected void printNamespace(Namespace ns, PrintWriter out) {}
protected void printAttributes(List attributes, PrintWriter out) {}
Post beta-4:
protected void printDeclaration(Document doc, Writer out)
throws IOException {}
protected void printDocType(DocType docType, Writer out) throws IOException {}
protected void printProcessingInstruction(ProcessingInstruction pi, Writer out, int indentLevel)
throws IOException {}
protected void printElement(Element element, Writer out, int indentLevel)
throws IOException {}
protected void printEntity(Entity entity, Writer out, int indentLevel)
throws IOException {}
protected void printNamespace(Namespace ns, Writer out)
throws IOException {}
protected void printAttributes(List attributes, Writer out)
throws IOException {}
protected void printComment(Comment comment, Writer out, int indentLevel)
throws IOException {}
protected void printText(String text, Writer out, int indentLevel)
throws IOException {}