Export (0) Print
Expand All

parseFromString method

Creates an instance of a document that contains a Document Object Model (DOM) tree from a string of serialized XML source.

Internet Explorer 9

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.

text/xml

application/xml

application/xhtml+xml

image/svg+xml

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

DOMParser

 

 

Show:
© 2014 Microsoft