title: XML search algorithm C++
body: <p>I am trying to find out how to write XML search algorithm.</p>
  
  <p>Following is the my File</p>
  
  <pre><code>    &lt;DUMMYROOT&gt;
  &lt;root&gt;Job Started&lt;/root&gt;
  &lt;root&gt;Job Running&lt;/root&gt;
  &lt;/DUMMYROOT&gt;
  </code></pre>
  
  <p>and I want search string as <code>&lt;root&gt;Job Started&lt;/root&gt;</code>
  I should be able to supply inner level of nodes as a search string like</p>
  
  <pre><code>&lt;DUMMYROOT&gt;&lt;root1&gt;&lt;root2&gt;&lt;root3&gt;STRINGTOSEARCH&lt;/root3&gt;&lt;/root2&gt;&lt;/root1&gt;&lt;/DUMMYROOT&gt;
  </code></pre>
  
  <p>and my file may not the complete XML when I am applying my Search Algorithm.</p>