title: Using Powershell to find multi-line patterns in files
body: <p>How would I find a multiline pattern in files, such as the contents of an XML node, using Powershell?</p>
  
  <p>i.e. if I were looking for the word "green" within the <code>deviceDescription</code> node, but the XML node text may span multiple lines, this doesn't work:</p>
  
  <pre><code>dir -r -i *.xml | select-string -Pattern "&lt;deviceDescription&gt;.*green.*&lt;/deviceDescription&gt;"
  </code></pre>