25.78. Document.loadXML( ): populate this Document by parsing a string of XML markupInternet Explorer:25.78.1. Synopsisvoid loadXML(String text) 25.78.1.1. Arguments
25.78.2. DescriptionThis 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. 25.78.3. See AlsoDOMParser.parseFromString( ) |