XPath

XPath
ParadigmQuery language
DeveloperW3C
First appeared1998
Stable release
3.1 / March 21, 2017 (2017-03-21)
Influenced by
XSLT, XPointer
Influenced
XML Schema, XForms, JSONPath

XPath (XML Path Language) is an expression language designed to support the query or transformation of XML documents. It was defined by the World Wide Web Consortium (W3C) in 1999,[1] and can be used to compute values (e.g., strings, numbers, or Boolean values) from the content of an XML document. Support for XPath exists in applications that support XML, such as web browsers, and many programming languages.

The XPath language is based on a tree representation of the XML document, and provides the ability to navigate around the tree, selecting nodes by a variety of criteria.[2][3] In popular use (though not in the official specification), an XPath expression is often referred to simply as "an XPath".

Originally motivated by a desire to provide a common syntax and behavior model between XPointer and XSLT, subsets of the XPath query language are used in other W3C specifications such as XML Schema, XForms and the Internationalization Tag Set (ITS).

XPath has been adopted by a number of XML processing libraries and tools, many of which also offer CSS Selectors, another W3C standard, as a simpler alternative to XPath.

  1. ^ "XML and Semantic Web W3C Standards Timeline" (PDF). 2012-02-04.
  2. ^ Bergeron, Randy (2000-10-31). "XPath—Retrieving Nodes from an XML Document". SQL Server Magazine. Archived from the original on 2010-07-26. Retrieved 2011-02-24.
  3. ^ Pierre Geneves (2012). "Course: The XPath Language" (PDF).

© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search