Friday, April 15, 2005

Xpath Tester

This is a simple online Javascript Xpath validator. Type in your expression and your xml and hit the evaluate button.

To get you started click ont he clinks below to prepopulate the form with some example xpath expressions

List all year elements in the document
List employees elements containing "company" as a parent element
List turnover of 2nd year elements in the document. Note if you are using IE this will show the 3rd year. This is a bug in IE's implementation of XPath
List all year elements in the document
Handling namepaces
Selecting attributes (e.g. id of years)
Xpath functions