title: XML::LibXML replace element value
body: <p>I want to replace a "VAL1" value of an element in xml file</p>
  
  <p>For some reason it does not work for me:</p>
  
  <pre><code>   &lt;testing&gt;
  &lt;application_name&gt;TEST&lt;/application_name&gt;
  &lt;application_id&gt;VAL1&lt;/application_id&gt;
  &lt;application_password&gt;1234&lt;/application_password&gt;
     &lt;/testing&gt;
  
  my $parser =XML::LibXML-&gt;new();
  $tree   =$parser-&gt;parse_file($xml);
  $root   =$tree-&gt;getDocumentElement;
  my ($elem)=$root-&gt;findnodes('/testing/application_id');
  $elem-&gt;setValue('VAL2');    
  </code></pre>
  
  <p>The errror is get is "Can't locate object method "setValue" via package "XML::LibXML::Element..."</p>