This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

parseFromString

Method of apis/xhr/events/loadapis/xhr/events/load

Syntax

var object = object.parseFromString(xmlSource, mimeType);

Parameters

xmlSource

Data-type
BSTR

A string that contains serialized XML source code.

mimeType

Data-type
BSTR

A string that identifies one of the following mime types for the source.

Return Value

Returns an object of type DOM NodeDOM Node

IHTMLDocument2

A document object that represents the DOM tree of the XML source.

Examples

To use the parseFromString method, type the following syntax.

oParser =  new DOMParser();
oDocument = oParser.parseFromString(xmlSource, mimeType);

See also

Related pages

Attributions