com.twelvemonkeys.xml
Class XMLSerializer
java.lang.Object
com.twelvemonkeys.xml.XMLSerializer
public class XMLSerializer
- extends Object
XMLSerializer
- Version:
- $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/xml/XMLSerializer.java#1 $
- Author:
- Harald Kuhr, last modified by $Author: haku $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLSerializer
public XMLSerializer(OutputStream pOutput,
String pEncoding)
indentation
public final XMLSerializer indentation(String pIndent)
stripComments
public final XMLSerializer stripComments(boolean pStrip)
serialize
public void serialize(Document pDocument)
- Serializes the entire document, along with the XML declaration
(
<?xml version="1.0" encoding="..."?>).
- Parameters:
pDocument - the document to serialize.
serialize
public void serialize(Node pRootNode,
boolean pWriteXMLDeclaration)
- Serializes the entire sub tree starting at
pRootNode, along with an optional XML declaration
(<?xml version="1.0" encoding="..."?>).
- Parameters:
pRootNode - the root node to serialize.pWriteXMLDeclaration - true if the XML declaration should be included, otherwise false.
main
public static void main(String[] pArgs)
throws IOException,
SAXException
- Throws:
IOException
SAXException
Copyright © 2015. All Rights Reserved.