XML DOM: Accessing Nodes
You can access every node in an XML document using the DOM.
Accessing Nodes
You can access a node in three ways:
- By using the
getElementsByTagName()
JavaScript method. See Accessing Nodes with getElementsByTagName() chapter. - By looping through (or traversing) the nodes tree. See Node Traverse chapter.
- By navigating the node tree, using the node relationships. See Node Navigation chapter.