org.mmbase.util.xml
Class XMLWriter
java.lang.Object
org.mmbase.util.xml.XMLWriter
- public class XMLWriter
- extends java.lang.Object
Util class to serialize xml (wrapper around javax.xml.transform.Transformer)
- Since:
- MMBase-1.7
- Author:
- Kees Jongenburger
|
Method Summary |
static java.lang.String |
write(org.w3c.dom.Node node,
boolean indent)
static method to serialize a node to a string |
static void |
write(org.w3c.dom.Node node,
java.io.Writer writer,
boolean indent)
static method to serialize an DOM document |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLWriter
public XMLWriter()
write
public static void write(org.w3c.dom.Node node,
java.io.Writer writer,
boolean indent)
throws javax.xml.transform.TransformerConfigurationException,
javax.xml.transform.TransformerException
- static method to serialize an DOM document
- Parameters:
writer - the writer to write the document toindent - if true the document wil be indented
- Throws:
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
write
public static java.lang.String write(org.w3c.dom.Node node,
boolean indent)
- static method to serialize a node to a string
- Parameters:
node - the node to serializeindent - , if true the node wil be indented
- Returns:
- the string represneation of the xml of null if an error occured
MMBase build 1.7.1.20041002