Section 25.88. DOMParser.parseFromString( ): parse XML markup


25.88. DOMParser.parseFromString( ): parse XML markup

25.88.1. Synopsis

 Document parseFromString(String text,                          String contentType) 

25.88.1.1. Arguments

text

The XML markup to parse.


contentType

The content type of the text. This may be one of "text/xml", "application/xml", or "application/xhtml+xml". Note that "text/html" is not supported.

25.88.1.2. Returns

A Document object that holds the parsed representation of text. See Document.loadXML( ) for an IE-specific alternative to this method.




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net