« back to article

PHP XPath generator

Paste XML document (max 20KB):

Context element XPath selector: (example: //book)
Sample XML:

<?xml version="1.0" encoding="UTF-8"?>
<products>
<book type="paperback">
<title lang="english">Snowcrash</title>
<price currency="euro">3,99</price>
<price currency="dollar">5,49</price>
<weightGrams>247</weightGrams>
<isbn10>0140232923</isbn10>
<isbn13>9780140232929</isbn13>
</book>
</products>