XPath Finder

Extract data from XML/HTML documents using XPath queries

XML/HTML Input & XPath

Results

No results yet

Enter XML/HTML data and an XPath expression to extract values

XPath Examples

//user/name

Get all user names

//user[@id='1']/name

Get name of user with id=1

/root/users/user[1]

Get first user element

//user[age > 25]/name

Names of users older than 25

//@name

All "name" attributes

count(//user)

Count number of users