Extract matching elements from XML with simple XPath-style paths and indexes.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
XML is parsed into an object tree, then slash-separated names, wildcard segments, and simple numeric predicates are walked. Matching nodes are rebuilt as XML fragments; this is a limited evaluator rather than a namespace-aware XPath engine.
<root>
<users>
<user id="1" role="admin"><name>Alice</name></user>
<user id="2" role="user"><name>Bob</name></user>
<user id="3" role="admin"><name>Carol</name></user>
</users>
</root>
Results: <root>
<users>
<user id="1" role="admin">
<name>Alice</name>
</user>
<user id="2" role="user">
<name>Bob</name>
</user>
<user id="3" role="admin">
<name>Carol</name>
</user>
</users>
</root>
Count: 1
SOAP responses, RSS feeds, and XML migration previews query nodes.