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.
<bookstore>
<book category="cooking">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
<book category="children">
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
<book category="web">
<title lang="en">Learning XML</title>
<author>Erik T. Ray</author>
<year>2003</year>
<price>39.95</price>
</book>
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”.
Thanks in advance…..
You can try this, if you don’t want to use any javascript library: