You can use xmlstarlet
to edit a XML
file in a shell
like this :
xmlstarlet edit -L -u "/scs-shop/price[@type="double"]" -v '99.66' file.xml
NOTE
"/scs-shop/price[@type="double"]"
is a Xpath expression- see
xmlstarlet ed --help
You can use xmlstarlet
to edit a XML
file in a shell
like this :
xmlstarlet edit -L -u "/scs-shop/price[@type="double"]" -v '99.66' file.xml
NOTE
"/scs-shop/price[@type="double"]"
is a Xpath expressionxmlstarlet ed --help