Skip Site Navigation «

DRX

app«drx

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 wildcards as a basic regular expression syntax.

Updated: Wednesday, March 22nd, 2006 @ 2:24 AM EST [13]

Navigation

Resources

Matching Tags

Indexes

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

Search for XPath on:


Last updated: Wednesday, March 22nd, 2006 @ 2:24 AM EST [2006-03-22T07:24:22Z]   home

(c) 2006-2008, Douglas W. Clifton, loadaveragezero.com, all rights reserved.