August 2006
Intermediate to advanced
1018 pages
34h 13m
English
Document.loadXML( ): populate this Document by parsing a string of XML markup — Internet Explorer:
void loadXML(Stringtext)text
The XML markup to parse.
This IE-specific method parses the specified string of XML text and builds a tree of DOM nodes in the current Document object, discarding any nodes that previously existed in the Document.
This method does not exist on Document objects that represent
HTML documents. Before calling loadXML(
), you typically create a new, empty Document to hold the
parsed content:
var doc = new ActiveXObject("MSXML2.DOMDocument");
doc.loadXML(markup);See DOMParser.parseFromString(
) for a non-IE alternative.
DOMParser.parseFromString(
)
Read now
Unlock full access