Class DOMParser


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

      Constructors 
      Constructor Description
      DOMParser()
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      jsinterop.base.Any parseFromString​(java.lang.String content, java.lang.String mimeType)
      Parses a document from the given string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DOMParser

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

      • parseFromString

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