com.gargoylesoftware.htmlunit.activex.javascript.msxml
Class XMLSerializer

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.activex.javascript.msxml.XMLSerializer

public class XMLSerializer
extends Object

A JavaScript object for XMLSerializer.

Version:
$Revision: 9017 $
Author:
Ahmed Ashour, Darrell DeBoer, Ronald Brill, Frank Danek

Constructor Summary
XMLSerializer(boolean preserveWhiteSpace)
           
 
Method Summary
 String serializeToString(XMLDOMNode root)
          The subtree rooted by the specified element is serialized to a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSerializer

public XMLSerializer(boolean preserveWhiteSpace)
Parameters:
preserveWhiteSpace - whether to preserve whitespaces or not
Method Detail

serializeToString

public String serializeToString(XMLDOMNode root)
The subtree rooted by the specified element is serialized to a string.

Parameters:
root - the root of the subtree to be serialized (this may be any node, even a document)
Returns:
the serialized string


Copyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.