app-text/
xmlstarlet

A set of tools to transform, query, validate, and edit XML documents

http://xmlstar.sourceforge.net/