public class DOMWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
canonical
Canonical output.
|
protected java.io.PrintWriter |
out
Print writer.
|
Constructor and Description |
---|
DOMWriter(java.io.Writer writer,
boolean canonical) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getWriterEncoding() |
protected java.lang.String |
normalize(java.lang.String s)
Normalizes the given string.
|
void |
print(org.w3c.dom.Node node)
Prints the specified node, recursively.
|
protected org.w3c.dom.Attr[] |
sortAttributes(org.w3c.dom.NamedNodeMap attrs)
Returns a sorted list of attributes.
|
protected final java.io.PrintWriter out
protected final boolean canonical
public static java.lang.String getWriterEncoding()
public void print(org.w3c.dom.Node node)
protected org.w3c.dom.Attr[] sortAttributes(org.w3c.dom.NamedNodeMap attrs)
protected java.lang.String normalize(java.lang.String s)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.