Package com.twelvemonkeys.xml
Class XMLSerializer
java.lang.Object
com.twelvemonkeys.xml.XMLSerializer
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 $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal XMLSerializerindentation(String pIndent) static voidvoidSerializes the entire document, along with the XML declaration (<?xml version="1.0" encoding="..."?>).voidSerializes the entire sub tree starting atpRootNode, along with an optional XML declaration (<?xml version="1.0" encoding="..."?>).final XMLSerializerstripComments(boolean pStrip)
-
Constructor Details
-
XMLSerializer
-
-
Method Details
-
indentation
-
stripComments
-
serialize
Serializes the entire document, along with the XML declaration (<?xml version="1.0" encoding="..."?>).- Parameters:
pDocument- the document to serialize.
-
serialize
Serializes the entire sub tree starting atpRootNode, along with an optional XML declaration (<?xml version="1.0" encoding="..."?>).- Parameters:
pRootNode- the root node to serialize.pWriteXMLDeclaration-trueif the XML declaration should be included, otherwisefalse.
-
main
- Throws:
IOExceptionSAXException
-