title: How to read a XML file in batch?
body: <p>I have a xml file containing a line like this:</p>
  
  <pre><code>&lt;id&gt;2012-10-19_23-10-04&lt;/id&gt;
  </code></pre>
  
  <p>I want to use the batch file to read the xml file, get the content and assign it to a variable.</p>
  
  <p>I know batch is probably not the preferred way to do this, but I am only allowed to use batch in this case.</p>
  
  <p>Any ideas? Thanks in advance!</p>
  
  <p>EDIT:</p>
  
  <p>I have a template like this:</p>
  
  <pre><code>setlocal disableDelayedExpansion
  
  set input="xml.xml"
  set output="result.txt"
  
  REM Some Code here:
  
  REM END
  </code></pre>
  
  <p><strong>I think XML Starlet might be a good tool to start, any ideas how to do this using xmlstarlet?</strong></p>