OpenStax CNX

Sections
You are here: Home » Content » XPath

About: XPath

Module by: Hannes Hirzel. E-mail the author

View the content: XPath

Metadata

Name: XPath
ID: m43489
Language: English (en)
Summary: XPath (XML Path Language) is a query language for selecting nodes from an XML document.
Subject: Science and Technology
Keywords: XML, XPath, XSLT
License: Creative Commons Attribution License CC-BY 4.0

Authors: Hannes Hirzel (hannes.hirzel@gmail.com)
Copyright Holders: Hannes Hirzel (hannes.hirzel@gmail.com)
Maintainers: Hannes Hirzel (hannes.hirzel@gmail.com)

Latest version: 1.9 (history)
First publication date: May 1, 2012 11:19 am -0500
Last revision to module: Jul 19, 2014 10:38 am -0500

Downloads

PDF: m43489_1.9.pdf PDF file, for viewing content offline and printing. Learn more.
EPUB: m43489_1.9.epub Electronic publication file, for viewing in handheld devices. Learn more.
XML: m43489_1.9.cnxml XML that defines the structure and contents of the module, minus any included media files. Can be reimported in the editing interface. Learn more.
Source Export ZIP: m43489_1.9.zip ZIP containing the module XML plus any included media files. Can be reimported in the editing interface. Learn more.
Offline ZIP: m43489_1.9_offline.zip An offline HTML copy of the content. Also includes XML, included media files, and other support files. Learn more.

Version History

Version: 1.9 Jul 19, 2014 10:38 am -0500 by Hannes Hirzel
Changes:
Split content intro three sections; added two examples

Version: 1.8 Oct 8, 2012 8:14 pm -0500 by Hannes Hirzel
Changes:
Added a third XPath example.

Version: 1.7 Oct 8, 2012 7:27 am -0500 by Hannes Hirzel
Changes:
Added a note which illustrates the abbreviation @ for having a condition on attribute values.

Version: 1.6 Aug 22, 2012 9:42 pm -0500 by Hannes Hirzel
Changes:
Added link to cnx module which refers to the XPath lecture and demo by Jennifer Widom.

Version: 1.5 Jun 13, 2012 10:16 am -0500 by Hannes Hirzel
Changes:
Added link to article on ibm.com/developerworks which explains how XQuery and XPath are related.

Version: 1.4 Jun 13, 2012 5:22 am -0500 by Hannes Hirzel
Changes:
Added link to XPath intro and demo of Stanford School of Engineering (Jennifer Wisdom)

Version: 1.3 Jun 2, 2012 3:36 am -0500 by Hannes Hirzel
Changes:
note about // abbreviation added.

Version: 1.2 May 29, 2012 9:54 am -0500 by Hannes Hirzel
Changes:
Added reference to W3C recommendation and link to XSLT identity transformation module.

Version: 1.1 May 1, 2012 1:10 pm -0500 by Hannes Hirzel
Changes:
Created module

How to Reuse and Attribute This Content

If you derive a copy of this content using a OpenStax-CNX account and publish your version, proper attribution of the original work will be automatically done for you.

If you reuse this work elsewhere, in order to comply with the attribution requirements of the license (CC-BY 4.0), you must include

  • the authors' names: Hannes Hirzel
  • the title of the work: XPath
  • the OpenStax-CNX URL where the work can be found: http://cnx.org/content/m43489/1.9/

See the citation section below for examples you can copy.

How to Cite and Attribute This Content

The following citation styles comply with the attribution requirements for the license (CC-BY 4.0) of this work:

American Chemical Society (ACS) Style Guide:

Hirzel, H. XPath, OpenStax-CNX Web site. http://cnx.org/content/m43489/1.9/, Jul 19, 2014.

American Medical Assocation (AMA) Manual of Style:

Hirzel H. XPath [OpenStax-CNX Web site]. July 19, 2014. Available at: http://cnx.org/content/m43489/1.9/.

American Psychological Assocation (APA) Publication Manual:

Hirzel, H. (2014, July 19). XPath. Retrieved from the OpenStax-CNX Web site: http://cnx.org/content/m43489/1.9/

Chicago Manual of Style (Bibliography):

Hirzel, Hannes. "XPath." OpenStax-CNX. July 19, 2014. http://cnx.org/content/m43489/1.9/.

Chicago Manual of Style (Note):

Hannes Hirzel, "XPath," OpenStax-CNX, July 19, 2014, http://cnx.org/content/m43489/1.9/.

Chicago Manual of Style (Reference, in Author-Date style):

Hirzel, H. 2014. XPath. OpenStax-CNX, July 19, 2014. http://cnx.org/content/m43489/1.9/.

Modern Languages Association (MLA) Style Manual:

Hirzel, Hannes. XPath. OpenStax-CNX. 19 July 2014 <http://cnx.org/content/m43489/1.9/>.