The DOMParser class is used to parse XML text and produce DOM objects which can be accessed.
object DOMParser()
Construct a new DOMParser object.
object parseFromString(string)
Parse XML string and return a "node" object representing the root of the DOM parse tree. The node object has the following properties and methods:
children - list of direct child nodes of the object
firstChild - the first node of the object's children
tagName - the XML tag name for the node
attributes - an object with a property for each attribute name and associated value