W3C XPath evalutation online

In this page you can check a XPath expression against your XML. The library used in this page is jaxp, Java API for XML Processing, version 1.4, from Java(TM) SE Runtime Environment (build 1.7.0_06-b24).

XPath expressionget example xpath

Return type:


What is XPath?

XPath is a language related to the expression that enables the handling of the values conforming to the data model.

The name of this language comes from its most prominent attribute "path-expression", which provides a method for hierarchical addressing of the nodes in an XML tree. 

In addition to modeling the tree construction of XML, the data model also comprises:

This edition of XPath supports:

The most important attributes of the XPath are Maps and Arrays handling.
W3C XPath evaluation
XPath expression evaluation is a great tool that checks the XPath expression against your XML.
This tool uses the JAVA API for XML Processing which provides us with a lot of useful XML handling elements.

How to use this tool?

To use this tool, add your XML code to the input box or just load examples from “get example XML”.
After adding XML, you can either click on the “Evaluate XPath” button to get the result or you can check your well-formed XML before evaluating.
When you are about to evaluate XPath, you can choose either of the return types.

You can also save the result produced by XPath expression evaluation.

Purpose of XPath

The main purpose of XPath is to figure out the nodes of JavaScript Object Notation trees and XML trees. 
XPath gets its name because it utilizes a path symbol for navigating over the hierarchical structure of an XML code file. 
XPath also uses a non-XML and compact syntax, which makes it simpler to use XPath inside URIs and XML attribute values. 
XPath adds together a similar syntax for "sailing" through JSON trees.

XPath String Example

Here is how you input XML will be converted into string format after evaluating XPath.
    <welcome-message>Hi! This is xpather beta...</welcome-message>
        This web app enables you to query XML/HTML documents with your browser in real-time. It can generate queries for you too! 
This web app enables you to query XML/HTML documents with your browser in real-time. It can generate queries for you too!

The basic component of XPath is the expression, which is a series of characters. This expression language offers numerous expressions, which can be built from keywords, operands, and symbols. 
XPath permits expressions to be nested with utmost versatility.

Related Tools

No Related tools

Facebook | Twitter | Pinterest | LinkedIn