Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

25. Client-Side JavaScript Reference > DOMParser.parseFromString( ): parse XML ...

Name

DOMParser.parseFromString( ): parse XML markup

Synopsis

Document parseFromString(Stringtext,
                         String contentType)

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.

Returns

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


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint