Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

DOMParser

Similar to the standard DOMParser. Used to parse an XML string into a DOM document that can be traversed and manipulated in the usual ways (getElementById(), appendChild(), etc).

Class Constructor

DOMParser

Create a new DOMParser object.

Code Block
var parser = new DOMParser();

 

Initialization Parameters

 

None

 

Methods

Name Description 
parseFromString

Parse a string into a standard DOM Document.