xsql

SQL-like language for querying and mutating XML files. Built for automated editing toolchains: reads a script (or inline query), applies it to XML documents in memory, and writes the result to stdout — a well-behaved Unix filter.

Read the docs