title: Extracting Data from XML files only if two values are matching. ( Using .bat )
body: <p>I'am looking for a .bat script which runs trough my XML files and extracts only certain Data of specified XML files. The data of these XML files should only be extracted, if the name "Ian" and position"executive" is matching. If the .bat found a matching XML file, it should only extract 3 specified values.</p>
  
  <p>For Example:</p>
  
  <p>Only extract if:</p>
  
  <ol>
  <li>Value would be "Name=Ian"</li>
  <li>Value would be "Postition=Executive"</li>
  </ol>
  
  <p>if these values are matching, Data should be extracted for:</p>
  
  <p>1.currentWork</p>
  
  <p>2.shortID</p>
  
  <p>3.holidaycounter</p>
  
  <p>I hope it won't be too much work. XML Datas are all similar.</p>
  
  <pre><code>&lt;Name="Ian" workstampIN="2017-04-06" worknumber="XXXX" editor="XXXX" Position="Executive" currentWork="engineer" shortID="543532" holidaycounter="50" &gt;
  </code></pre>
  
  <p>etc.</p>
  
  <p>Sorry I'am really new to .bat. Thanks for the help in advance!</p>