25.87. DOMParser: parses XML markup to create a DocumentFirefox 1.0, Safari 2.01, Opera 7.60: Object DOMParser25.87.1. Constructornew DOMParser( ) 25.87.2. Methods
25.87.3. DescriptionA DOMParser object parses XML text and returns an XML Document object. To use a DOMParser, instantiate one with the no-argument constructor and then call its parseFromString( ) method: var doc = (new DOMParser( )).parseFromString(text); Internet Explorer does not support the DOMParser object. Instead, it supports XML parsing with Document.loadXML( ). Note that the XMLHttpRequest object can also parse XML documents. See the responseXML property of XMLHttpRequest. 25.87.4. See AlsoDocument.loadXML( ), XMLHttpRequest; Chapter 21 |