Over a million developers have joined DZone.

XPath 2.0

· Agile Zone

Learn more about how DevOps teams must adopt a more agile development process, working in parallel instead of waiting on other teams to finish their components or for resources to become available, brought to you in partnership with CA Technologies.

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

 

Discover the warning signs of DevOps Dysfunction and learn how to get back on the right track, brought to you in partnership with CA Technologies.

Topics:

Published at DZone with permission of Madhuka Udantha, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}