xmlq

filter xml in the command line with xpath

Usage no npm install needed!

<script type="module">
  import xmlq from 'https://cdn.skypack.dev/xmlq';
</script>

README

xmlq

The next best thing after JSONx

Filter XML with xpath.

echo "<a>foo <b><c>hey</c></b></a>" | \
  xmlq /a | \
  DEBUG=* xmlq //b