XPath is a language for finding information in XML documents.
XPath node syntax
In XPath, there are seven types of nodes: element, attribute, text, namespace, processing directive, comment, and document (root) node. XML documents are treated as nodes trees. The root of the tree is called the document node or root node.
XPath node example
Harry Potter J K. Rowling 2005 29.99
Example of nodes in the above XML document:
(document node) J K. Rowling (element node) lang="en" (attribute node)