public class XMLSerializer
extends java.lang.Object
| Constructor and Description |
|---|
XMLSerializer(java.io.OutputStream pOutput,
java.lang.String pEncoding) |
| Modifier and Type | Method and Description |
|---|---|
XMLSerializer |
indentation(java.lang.String pIndent) |
static void |
main(java.lang.String[] pArgs) |
void |
serialize(org.w3c.dom.Document pDocument)
Serializes the entire document, along with the XML declaration
(
<?xml version="1.0" encoding="..."?>). |
void |
serialize(org.w3c.dom.Node pRootNode,
boolean pWriteXMLDeclaration)
Serializes the entire sub tree starting at
pRootNode, along with an optional XML declaration
(<?xml version="1.0" encoding="..."?>). |
XMLSerializer |
stripComments(boolean pStrip) |
public XMLSerializer(java.io.OutputStream pOutput,
java.lang.String pEncoding)
public final XMLSerializer indentation(java.lang.String pIndent)
public final XMLSerializer stripComments(boolean pStrip)
public void serialize(org.w3c.dom.Document pDocument)
<?xml version="1.0" encoding="..."?>).pDocument - the document to serialize.public void serialize(org.w3c.dom.Node pRootNode,
boolean pWriteXMLDeclaration)
pRootNode, along with an optional XML declaration
(<?xml version="1.0" encoding="..."?>).pRootNode - the root node to serialize.pWriteXMLDeclaration - true if the XML declaration should be included, otherwise false.public static void main(java.lang.String[] pArgs)
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOExceptionorg.xml.sax.SAXExceptionCopyright © 2018. All Rights Reserved.