public class XMLWriter extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
write(Collection<? extends Node> c) |
static String |
write(Node node) |
static String |
write(Node node,
boolean indent)
Defaulting version of
write(Node, boolean, boolean). |
static String |
write(Node node,
boolean indent,
boolean omitxml)
static method to serialize a node to a string
|
static void |
write(Node node,
Writer writer,
boolean indent)
defaulting version of
write(Node, Writer, boolean, boolean). |
static void |
write(Node node,
Writer writer,
boolean indent,
boolean omitxml)
static method to serialize an DOM document
|
public static void write(Node node, Writer writer, boolean indent) throws TransformerConfigurationException, TransformerException
write(Node, Writer, boolean, boolean). (Not ommitting xml declaration).public static void write(Node node, Writer writer, boolean indent, boolean omitxml) throws TransformerConfigurationException, TransformerException
node - the node to serializewriter - the writer to write the node toindent - if true the document wil be indentedomitxml - TransformerConfigurationExceptionTransformerExceptionpublic static String write(Node node, boolean indent)
write(Node, boolean, boolean). (Not ommitting xml
declaration).public static String write(Collection<? extends Node> c)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}