Hello All,

I have xml file conating book details.Now I want to search some book details.
I want to serach using xpath in javascript.
I searched and I come accross the following vbscript code.
But I want to use xpath using javascript

<script type="text/vbscript">

set xmlDoc=CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load("books.xml")

set nodes=xmlDoc.selectNodes("/bookstore/book")

for each x in nodes
document.write("<xmp>")
document.write(x.xml)
document.write("</xmp>")
next

</script>
Please help me how to use xpath in javascript.