title: search for a particular node in xml
body: <p>I am doing a Phonegap application where I want to use xml file,ie I want to search for a particular node in xml.The xml file I have used is given below.</p>
  
  <pre><code>&lt;bookstore&gt;
    &lt;book category="cooking"&gt;
    &lt;title lang="en"&gt;Everyday Italian&lt;/title&gt;
    &lt;author&gt;Giada De Laurentiis&lt;/author&gt;
    &lt;year&gt;2005&lt;/year&gt;
    &lt;price&gt;30.00&lt;/price&gt;
    &lt;/book&gt;
    &lt;book category="children"&gt;
    &lt;title lang="en"&gt;Harry Potter&lt;/title&gt;
    &lt;author&gt;J K. Rowling&lt;/author&gt;
    &lt;year&gt;2005&lt;/year&gt;
    &lt;price&gt;29.99&lt;/price&gt;
    &lt;/book&gt;
    &lt;book category="web"&gt;
    &lt;title lang="en"&gt;Learning XML&lt;/title&gt;
    &lt;author&gt;Erik T. Ray&lt;/author&gt;
    &lt;year&gt;2003&lt;/year&gt;
    &lt;price&gt;39.95&lt;/price&gt;
   &lt;/book&gt;
  </code></pre>
  
  <p></p>
  
  <p>Here I want to search the category of book and display all the details of that book.ie if i search for category "web",it will return the details of book having category "web".</p>
  
  <p>Thanks in advance.....</p>