1
2
Need to change values 1 and 2 from bash
You can use the xsltproc command (from package xsltproc on Debian-based distros) with the following XSLT sheet:
Then use the command:
xsltproc --stringparam tagReplacement polop \
--stringparam tag1Replacement palap \
transform.xsl input.xml
Or you could also use regexes, but modifying XML through regexes is pure evil :)