Xml Dom Examples
* * *
**XML DOM Parsing**
The following examples use the XML file [books.xml](#).
(#)
(#)
(#)
* * *
**XML DOM Properties and Methods**
The following examples use the XML file [books.xml](#).
The function [loadXMLDoc()](#), in an external JavaScript, is used to load an XML file.
The function [loadXMLString()](#), in an external JavaScript, is used to load an XML string.
(#)
(#)
(#)
* * *
**XML DOM Accessing Nodes**
The following examples use the XML file [books.xml](#).
The function [loadXMLDoc()](#), in an external JavaScript, is used to load an XML file.
(#)
(#)
(#)
(#)
(#)
(#)
* * *
**XML DOM Node Information**
The following examples use the XML file [books.xml](#).
The function [loadXMLDoc()](#), in an external JavaScript, is used to load an XML file.
(#)
(#)
(#)
(#)
(#)
* * *
**XML DOM Node Lists and Attribute Lists**
The following examples use the XML file [books.xml](#).
The function [loadXMLDoc()](#), in an external JavaScript, is used to load an XML file.
[Get Text from the First Element](#)
(#)
(#)
(#)
* * *
**XML DOM Traversing the Node Tree**
The following examples use the XML file [books.xml](#).
The function [loadXMLString()](#), in an external JavaScript, is used to load an XML string.
(#)
(#)
* * *
**XML DOM Browser Differences**
The following examples use the XML file [books.xml](#).
The function [loadXMLDoc()](#), in an external JavaScript, is used to load an XML file.
(#)
(#)
(#)
* * *
**XML DOM Navigating Nodes**
The following examples use the XML file [books.xml](#).
The function [loadXMLDoc()](#), in an external JavaScript, is used to load an XML file.
(#)
(#)
(#)
(#)
(#)
(#)
* * *
**XML DOM Getting Node Values**
The following examples use the XML file [books.xml](#).
The function [loadXMLDoc()](#), in an external JavaScript, is used to load an XML file.
(#)
(#)
(#)
* * *
**XML DOM Changing Node Values**
The following examples use the XML file [books.xml](#).
The function [loadXMLDoc()](#), in an external JavaScript, is used to load an XML file.
[Change an Element's Text Node](#)
(#)
(#)
(#)
* * *
**XML DOM Removing Nodes**
The following examples use the XML file [books.xml](#).
The function [loadXMLDoc()](#), in an external JavaScript, is used to load an XML file.
(#)
(#)
(#)
(#)
(#)
(#)
(#)
* * *
**XML DOM Replacing Nodes**
The following examples use the XML file [books.xml](#).
The function [loadXMLDoc()](#), in an external JavaScript, is used to load an XML file.
(#)
(#)
(#)
* * *
**XML DOM Creating Nodes**
The following examples use the XML file [books.xml](#).
The function [loadXMLDoc()](#), in an external JavaScript, is used to load an XML file.
(#)
(#)
(#)
(#)
(#)
(#)
(#)
* * *
**XML DOM Adding Nodes**
The following examples use the XML file [books.xml](#).
The function [loadXMLDoc()](#), in an external JavaScript, is used to load an XML file.
(#)
(#)
(#)
(#)
(#)
* * *
**XML DOM Cloning Nodes**
The following examples use the XML file [books.xml](#).
The function [loadXMLDoc()](#), in an external JavaScript, is used to load an XML file.
(#)
(#)
* * *
**XML DOM XMLHttpRequest Object*Create a simple XMLHttpRequest and retrieve data from a TXT file.
[Retrieve Header Information with getAllResponseHeaders()](#)
Retrieve header information for a resource (file).
[Retrieve Specific Header Information with getResponseHeader()](#)
Retrieve specific header information for a resource (file).
(#)
How a web page communicates with a web server while a user types characters in an input field.
(#)
How a web page retrieves information from a database using the XMLHttpRequest object.
(#)
Create an XMLHttpRequest to retrieve data from an XML file and display the data in an HTML table.
(#)
YouTip