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
- DOMParserDOMParser
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]