Enterprise Integration Zone is brought to you in partnership with:

Madhuka is Software Engineer and currently works on the Jaggery, UES, WSO2 Gadget Server team. He holds a B.Sc (Hons) degree in Information Technology from the Faculty of Information Madhuka is a DZone MVB and is not an employee of DZone and has posted 52 posts at DZone. You can read more from them at their website. View Full User Profile

XPath 2.0

05.21.2013
| 2062 views |
  • submit to reddit

I learned about Xpath 5 years ago, but I've really only seen enterprise usage in just the past few weeks. Therefore, I wanted to write about Xpath 2.0 and the enterprise experience. XPath 2.0 is the current version of the XPath language defined by the World Wide Web Consortium, W3C. XPath is used for selecting parts of an XML document. So it means hierarchical navigation throughout the document tree. XPath became a W3C Recommendation on 16. November 1999.

XPath 2.0 is used as a sublanguage of XSLT 2.0, and it is also a subset of XQuery 1.0. All three languages share the same data model (the XDM - XQuery and XPath Data Model).

Here I am going draw a mind map for Xpath.

image

image

Xpath axis defines a node-set relative to the current node.

Xpath Operations

|, +, -, *, =, !=, <, >, <=, => or, and, mod

 

Published at DZone with permission of Madhuka Udantha, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)