how to search book by id and give output all subchild value using javacript from xml file : i want to search book by id and give  
output of title author year price value 
like <br>
search id = 3<br>
output :<br>
    title: XQuery Kick Start<br>
    author: James McGovern<br>
    author: Per Bothner<br>
    author: Kurt Cagle<br>
    author: James Linn<br>
    author: Vaidyanathan Nagarajan<br>
    year: 2003<br>
    price: 49.99<br>

xml file --> 

    <?xml version="1.0" encoding="UTF-8"?>
    <bookstore>
      <book id="1">
        <title lang="en">Everyday Italian</title>
        <author>Giada De Laurentiis</author>
        <year>2005</year>
        <price>30.00</price>
      </book>
      <book id="2">
        <title lang="en">Harry Potter</title>
        <author>J K. Rowling</author>
        <year>2005</year>
        <price>29.99</price>
      </book>
      <book id="3">
        <title lang="un">XQuery Kick Start</title>
        <author>James McGovern</author>
        <author>Per Bothner</author>
        <author>Kurt Cagle</author>
        <author>James Linn</author>
        <author>Vaidyanathan Nagarajan</author>
        <year>2003</year>
        <price>49.99</price>
      </book>
      <book id="4">
        <title lang="en">Learning XML</title>
        <author>Erik T. Ray</author>
        <year>2003</year>
        <price>39.95</price>
      </book>
    </bookstore>