public class XMLWriter
extends Object
Constructor and Description |
---|
XMLWriter() |
Modifier and Type | Method and Description |
---|---|
static void |
debug(EasyNode node)
Prints the node, in XML format, to Trace.debug()
|
static void |
debug(EasyNode node,
boolean includeXMLDecl)
Prints the node, in XML format, to Trace.debug()
|
static void |
debug(Source node)
Prints the node, in XML format, to Trace.debug()
|
static void |
debug(Source node,
boolean includeXMLDecl)
Prints the node, in XML format, to Trace.debug()
|
static String |
toString(EasyNode node)
Format a nice, multi-line, indented, representation of the given
XML fragment.
|
static String |
toString(EasyNode node,
boolean includeXMLDecl)
Format a nice, multi-line, indented, representation of the given
XML fragment.
|
static String |
toString(Source node)
Format a nice, multi-line, indented, representation of the given
XML fragment.
|
static String |
toString(Source node,
boolean includeXMLDecl)
Format a nice, multi-line, indented, representation of the given
XML fragment.
|
public static void debug(EasyNode node)
public static void debug(EasyNode node, boolean includeXMLDecl)
public static void debug(Source node)
public static void debug(Source node, boolean includeXMLDecl)
public static String toString(EasyNode node)
node
- Base node to format.public static String toString(EasyNode node, boolean includeXMLDecl)
node
- Base node to format.public static String toString(Source node)
node
- Base node to format.public static String toString(Source node, boolean includeXMLDecl)
node
- Base node to format.includeXMLDecl
- true to include XML declaration, false to
suppress it (useful for generating a fragment
of XML to insert within a larger document.)