I have an xml file
<?xml version="1.0"?>
<preferences>
<!--General options-->
<options>
<dbHost>localhost</dbHost>
<dbUser>bwserver</dbUser>
<dbPass>bwserver</dbPass>
<dbPort>3306</dbPort>
How can i update the value dbUser?
When I type
xmlstarlet edit --update '/preferences/options/dbUser/' --value 123 preferences.xml
nothing happens. I only see the file contents in terminal. The xml file was not touched.