title: Searching nodes - Libxml
body: <p>I am trying to parse an XML document in C++. I do not have any form of metadata associated with the document. Since i am a novice with XML's i wanted to understand the best way to parse this xml. I am using libxml2 to achive this. </p>
  
  <p>What i am doing currently is 
  1) walking the complete tree node by node , using pointers of the root node of document. 
  2) Comparing &amp; looking for the node i need , extracting the value. 
  3) repeat 1-2;</p>
  
  <p>Is this the best possible way to do it , constrained by the library ? I ran through the API , but could not find something that would fit the bill.</p>
  
  <p>Cheers!</p>