All modern browsers have a built-in XML parser.
An XML parser converts an XML document into a XML DOM object - which can then be manipulated with
The Below code fragment parses an XML document into a XML DOM object:
The Below code fragment parses an XML string into a XML DOM object:
Note: Internet Explorer uses the loadXML() method to parse an XML string, while other
browsers use the DOMParser object.
For security reasons, modern browsers do not allow access across domains.
This means, that both the web page and the XML file it tries to load, must be located on the same
In the next chapter you will learn how to access and retrieve data from the XML DOM object.
Your Query was successfully sent!