August 2006
Intermediate to advanced
1018 pages
34h 13m
English
DOMParser: parses XML markup to create a Document — Firefox 1.0, Safari 2.01, Opera 7.60: Object → DOMParser
new DOMParser( )
parseFromString(
)
Parses XML markup and returns a Document.
A 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.
Document.loadXML( ),
XMLHttpRequest; Chapter 21
Read now
Unlock full access