This article needs additional citations for verification. (August 2010) |
XPath | |
---|---|
Paradigm | Query language |
Developer | W3C |
First appeared | 1998 |
Stable release | 3.1
/ March 21, 2017 |
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.
© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search