Class DOMParser

java.lang.Object
org.opencms.gwt.client.util.DOMParser

@JsType(namespace="<global>", isNative=true) public class DOMParser extends Object
JsInterop type for the native DOMParser class (not provided by elemental2 yet).
  • Constructor Details

    • DOMParser

      public DOMParser()
      Creates a new instance.
  • Method Details

    • parseFromString

      public jsinterop.base.Any parseFromString(String content, String mimeType)
      Parses a document from the given string.
      Parameters:
      content - the string with the document content
      mimeType - the mimetype
      Returns:
      the document