Class XMLSerializer

java.lang.Object
org.teavm.jso.dom.xml.XMLSerializer
All Implemented Interfaces:
org.teavm.jso.JSObject

public abstract class XMLSerializer extends Object implements org.teavm.jso.JSObject
The XMLSerializer interface provides the ability to construct an XML string representing a DOM tree.
  • Constructor Details

    • XMLSerializer

      public XMLSerializer()
  • Method Details

    • create

      public static XMLSerializer create()
    • serializeToString

      public abstract String serializeToString(Node rootNode)
      Constructs a string representing the specified DOM tree in XML form.
      Parameters:
      rootNode - The Node to use as the root of the DOM tree or subtree for which to construct an XML representation. The root node itself must be either a Node or Attr object.
      Returns:
      A DOMString containing the XML representation of the specified DOM tree.