public class XMLSerializer extends Object
Constructor and Description |
---|
XMLSerializer(boolean preserveWhiteSpace) |
Modifier and Type | Method and Description |
---|---|
String |
serializeToString(XMLDOMNode root)
The subtree rooted by the specified element is serialized to a string.
|
public XMLSerializer(boolean preserveWhiteSpace)
preserveWhiteSpace
- whether to preserve whitespaces or notpublic String serializeToString(XMLDOMNode root)
root
- the root of the subtree to be serialized (this may be any node, even a document)Copyright © 2002–2022 Gargoyle Software Inc.. All rights reserved.