Skip Site Navigation «



Web Developer Resource Index: XPath

The XML Path Language (XPath) is a method of addressing elements and their attributes in XML documents using a file system or URI-like syntax. It combines this simple syntax with a library of functions for using numbers, strings and boolean expressions.

XPath is designed to be used with XPointer and XSLT for populating transformations between raw XML data and a formatted result. Note that XPath is not an XML language, rather a compact syntax for matching document elements formed from a hierarchical structure similar to the DOM.

A few simple examples:

/ the root node // all nodes (careful!) /*/* all children of the root node /name node named "name" name[1] the first child of the "name" node @ selects an attribute .. the parent node . the current node

Note the use of classic shell wildcard characters (*) as a simple form of regular expression syntax.

Updated: Wednesday, October 29th, 2008 @ 1:53 AM EDT



Matching Tags


§ A.Author
§ B.Best
§ D.Domain
§ F.Recent
§ G.Tag
§ H.Title

Search for XPath on:

Last updated: Wednesday, October 29th, 2008 @ 1:53 AM EDT [2008-10-29T05:53:46Z]   home

(c) 2008-2010, Douglas W. Clifton,, all rights reserved.