title: Parse XML and find all instances of a string
body: <p>I'm working with an xml file that looks similar to the following. However it is the following thousands of times over. I will be using powershell to parse through the xml</p>
  
  <p>I need to find the task name of all the tasks where the string "c:\" shows up. While this could be easy if there was only one area that the string might show up, it can quite literally show up all over the task. In this particular task I have put the C:\ in 4 different times.</p>
  
  <p>I'm hoping to get an output of the task name, and the places that the given path was referenced...</p>
  
  <pre><code>&lt;Task ID="00000000" Name="Task name goes here" Active="0" NextEID="22" CacheNames="random" AR="0" TT="COS"&gt;
          &lt;Info&gt;
              &lt;Description&gt;
              &lt;/Description&gt;
              &lt;Notes&gt;
              &lt;/Notes&gt;
          &lt;/Info&gt;
          &lt;Parameters&gt;
              &lt;moreParameters&gt;C:\pathGoesHere&lt;/moreParameters&gt;
          &lt;/Parameters&gt;
          &lt;Schedules/&gt;
          &lt;Source HostID="0" Type="FileSystem" Path="C:\path" FileMask="[Parm:parameter].txt" DeleteOrig="0" NewFilesOnly="0" SearchSubdirs="0" Unzip="0" RetryIfNoFiles="0" UseDefRetryCount="1" UseDefRetryTimeoutSecs="1" UseDefRescanSecs="1" UDMxFi="1" UDMxBy="1" ID="11"/&gt;
          &lt;For ID="13"&gt;
              &lt;Destination HostID="000000" Type="siLock" FolderID="" FolderType="4" FolderName="Home/[Parm:parameter]/" Subject="" FileName="[OnlyName]_[YYYY][MM][DD].bai" UseOrigName="0" ForceDir="1" OverwriteOrig="1" UseRelativeSubdirs="1" Zip="0" UseDefRetryCount="1" UseDefRetryTimeoutSecs="1" UseDefUser="1" UseDefClientCert="1" ID="12"/&gt;
              &lt;If ID="14"&gt;
                  &lt;When&gt;
                      &lt;Criteria&gt;
                          &lt;comp a="[ErrorCodeFile]" test="NEQ" b="0"/&gt;
                      &lt;/Criteria&gt;
                      &lt;UpdOrig Action="d" ID="15"/&gt;
                      &lt;Destination HostID="0000000000" Type="Share" Path="C:\anotherCPath" FileName="[Parm:parameter]_[YYYY][MM][DD].bai" UseOrigName="0" ForceDir="1" OverwriteOrig="1" UseRelativeSubdirs="1" Zip="0" UseDefRetryCount="1" UseDefRetryTimeoutSecs="1" ID="17"/&gt;
                  &lt;/When&gt;
              &lt;/If&gt;
          &lt;/For&gt;
          &lt;If ID="19"&gt;
              &lt;When&gt;
                  &lt;Criteria&gt;
                      &lt;comp a="[ErrorCodeTask]" test="NNE" b="0"/&gt;
                  &lt;/Criteria&gt;
                  &lt;Email HostID="385322183" Subject="[TaskStatus]-[TaskName]" Message="" AddressTo="email@address.com" Attachment = "C:\path\" UseDefRetryCount="1" UseDefRetryTimeoutSecs="1" ID="20"/&gt;
              &lt;/When&gt;
          &lt;/If&gt;
      &lt;/Task&gt;
  </code></pre>