XPath: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
{{Incomplete}}
== Definition ==
== Definition ==


''XPath'' is a language that allows you to identify any node in an XML document. It is used by [[XSLT]] (a transformation language) and [[XQuery], a query language. Path gets its name from its use of a path notation for navigating through the hierarchical structure of an XML document. XPath uses a compact, non-XML syntax to facilitate use of XPath within URIs and XML attribute values.
''XPath'' is a language that allows you to identify any node in an XML document. It is used by [[XSLT]] (a transformation language) and [[XQuery], a query language. Path gets its name from its use of a path notation for navigating through the hierarchical structure of an XML document. XPath uses a compact, non-XML syntax to facilitate use of XPath within URIs and XML attribute values.


XPath 2.0 is an expression language that allows the processing of values conforming to the data model defined in ''XQuery/XPath Data Model (XDM)''. The data model provides a tree representation of XML documents as well as atomic values such as integers, strings, and booleans, and sequences that may contain both references to nodes in an XML document and atomic values. The result of an XPath expression may be a selection of nodes from the input documents, or an atomic value, or more generally, any sequence allowed by the data model. The name of the language derives from its most distinctive feature, the path expression, which provides a means of hierarchic addressing of the nodes in an XML tree (http://www.w3.org/TR/xpath20/), retrieved 16:02, 25 November 2007 (MET)
XPath 2.0 is an expression language that allows the processing of values conforming to the data model defined in ''XQuery/XPath Data Model (XDM)''. The data model provides a tree representation of XML documents as well as atomic values such as integers, strings, and booleans, and sequences that may contain both references to nodes in an XML document and atomic values. The result of an XPath expression may be a selection of nodes from the input documents, or an atomic value, or more generally, any sequence allowed by the data model. The name of the language derives from its most distinctive feature, the path expression, which provides a means of hierarchic addressing of the nodes in an XML tree (http://www.w3.org/TR/xpath20/), retrieved 16:07, 25 November 2007 (MET)
 
See [[XPath tutorial - basics]].
 
== Software ==
 
* All [[XSLT]] and [[XQuery]] processors implement XPath.
* Php [http://ch2.php.net/dom DOM] implements XPath


== Links ==
== Links ==
Line 11: Line 19:
* [http://www.w3.org/TR/xpath XPath 1.0] XML Path Language (XPath). Version 1.0, W3C Recommendation 16 November 1999. Used by XSLT 1.0.  
* [http://www.w3.org/TR/xpath XPath 1.0] XML Path Language (XPath). Version 1.0, W3C Recommendation 16 November 1999. Used by XSLT 1.0.  
* [http://www.w3.org/TR/xquery-operators/ XQuery 1.0 and XPath 2.0 Functions and Operators]
* [http://www.w3.org/TR/xquery-operators/ XQuery 1.0 and XPath 2.0 Functions and Operators]
=== Overviews ===
* [http://en.wikipedia.org/wiki/Xpath Xpath] (Wikipedia)


[[Category: XML]]
[[Category: XML]]
[[Category: Technologies]]
[[Category: Technologies]]
[[Category: databases]]
[[Category: databases]]

Revision as of 17:07, 25 November 2007

Definition

XPath is a language that allows you to identify any node in an XML document. It is used by XSLT (a transformation language) and [[XQuery], a query language. Path gets its name from its use of a path notation for navigating through the hierarchical structure of an XML document. XPath uses a compact, non-XML syntax to facilitate use of XPath within URIs and XML attribute values.

XPath 2.0 is an expression language that allows the processing of values conforming to the data model defined in XQuery/XPath Data Model (XDM). The data model provides a tree representation of XML documents as well as atomic values such as integers, strings, and booleans, and sequences that may contain both references to nodes in an XML document and atomic values. The result of an XPath expression may be a selection of nodes from the input documents, or an atomic value, or more generally, any sequence allowed by the data model. The name of the language derives from its most distinctive feature, the path expression, which provides a means of hierarchic addressing of the nodes in an XML tree (http://www.w3.org/TR/xpath20/), retrieved 16:07, 25 November 2007 (MET)

See XPath tutorial - basics.

Software

  • All XSLT and XQuery processors implement XPath.
  • Php DOM implements XPath

Links

Standards

Overviews