title: How to loop through xml values in a batch cmd
body: <p>if i have the following xml:</p>
  
  <pre><code>&lt;a&gt; 
      &lt;b&gt;valA&lt;/b&gt;
      &lt;b&gt;valB&lt;/b&gt;
  &lt;/a&gt; 
  
  &lt;c&gt; 
      &lt;b&gt;valA&lt;/b&gt;
      &lt;b&gt;valB&lt;/b&gt;
  &lt;/c&gt; 
  </code></pre>
  
  <p>and the following cmd:</p>
  
  <pre><code>for /f "delims=" %%f in ('dir /b /s server.xml') do (
  FOR /F "tokens=2 delims=&gt;" %%i in ('findstr "&lt;a&gt;" %%f') do @echo %%i &gt; temp1.txt
  FOR /F "tokens=1 delims=&lt;" %%i in (temp1.txt) do @echo %%i
  </code></pre>
  
  <p>)</p>
  
  <p>i need to access the values of node b but the above code only will work if i have values like this</p>
  
  <pre><code>&lt;a&gt;asdf&lt;/a&gt;
  </code></pre>
  
  <p>I only want to iterate through parent element a</p>