title: What is wrong with my xmlstarlet update command?
body: <p>I am trying to edit an element's value in an xml file using <a href="http://xmlstar.sourceforge.net/" rel="nofollow noreferrer">xmlstarlet</a> but the edit has no effect. No errors are displayed nor any success message.</p>
  
  <p>I have tested my xpath query using an online <a href="https://www.freeformatter.com/xpath-tester.html" rel="nofollow noreferrer">xpath tester</a>.</p>
  
  <p>This is my xml file:</p>
  
  <pre><code>&lt;workflow scriptid="customworkflow_sktest01"&gt;
    &lt;runasadmin&gt;F&lt;/runasadmin&gt;
    &lt;workflowstates&gt;
      &lt;workflowstate scriptid="workflowstate15154"&gt;
        &lt;description&gt;&lt;/description&gt;
        &lt;workflowactions triggertype="ONENTRY"&gt;
          &lt;setfieldvalueaction scriptid="workflowaction88038"&gt;
            &lt;valuejoinfield&gt;&lt;/valuejoinfield&gt;
            &lt;valueselect&gt;24506&lt;/valueselect&gt;
            &lt;valuetext&gt;&lt;/valuetext&gt;
          &lt;/setfieldvalueaction&gt;
        &lt;/workflowactions&gt;
      &lt;/workflowstate&gt;
    &lt;/workflowstates&gt;
  &lt;/workflow&gt;
  </code></pre>
  
  <p>This is the command I'm using with xmlstarlet:</p>
  
  <pre><code>C:\...\xmlstarlet-1.6.1-win32\xmlstarlet-1.6.1&gt;xml edit -P --update "/workflow/workflowstates/workflowstate/workflowactions/setfieldvalueaction[@scriptid="workflowaction88038"]/valueselect" -v 1234 "C:\...\customworkflow_sktest01.xml"
  </code></pre>
  
  <p>When I run that command xmlstarlet simply echoes the unmodified source xml.</p>
  
  <p><strong>Solution Update:</strong></p>
  
  <p>The following is the working command:</p>
  
  <pre><code>C:\...\xmlstarlet-1.6.1-win32\xmlstarlet-1.6.1&gt;xml edit -P --update "/workflow/workflowstates/workflowstate/workflowactions/setfieldvalueaction[@scriptid='workflowaction88038']/valueselect" -v 1234 "C:\...\customworkflow_sktest01.xml"
  </code></pre>