Traversing means looping through or traveling across the node tree.
Traversing the Node Tree
Often you want to loop an XML document, for example: when you want to extract the value of each element.
This is called “Traversing the node tree”
The example below loops through all child nodes of <book>, and displays their names and values: Continue reading XML DOM Traverse Node Tree