Package org.opencms.gwt.client.util
Class DOMParser
- java.lang.Object
-
- org.opencms.gwt.client.util.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.
-
-
-
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 contentmimeType
- the mimetype- Returns:
- the document
-
-