parseFromString method
Creates an instance of a document that contains a Document Object Model (DOM) tree from a string of serialized XML source.
![]() |
Syntax
var retval = DOMParser.parseFromString(xmlSource, mimeType);Parameters
- xmlSource [in]
-
Type: String
A string that contains serialized XML source code.
- mimeType [in]
-
Type: String
A string that identifies one of the following mime types for the source.
Return value
Type: IHTMLDocument2
A document object that represents the DOM tree of the XML source.
Standards information
There are no standards that apply here.
Remarks
To use the parseFromString method, type the following syntax.
oParser = new DOMParser(); oDocument = oParser.parseFromString(xmlSource, mimeType);
See also
Show:
