title: Extracting and dumping elements using xmlstarlet
body: <p>I am looking for a way to extract and print an element from my xml using xmlstarlet; for example if my xml is</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  
  &lt;bookstore&gt;
  
  &lt;book&gt;
    &lt;title lang="eng"&gt;Harry Potter&lt;/title&gt;
    &lt;price&gt;29.99&lt;/price&gt;
  &lt;/book&gt;
  
  &lt;book&gt;
    &lt;title lang="eng"&gt;Learning XML&lt;/title&gt;
    &lt;price&gt;39.95&lt;/price&gt;
  &lt;/book&gt;
  
  &lt;/bookstore&gt;
  </code></pre>
  
  <p>I would like to print out book element with price = 29.99 as:</p>
  
  <pre><code>&lt;book&gt;
    &lt;title lang="eng"&gt;Harry Potter&lt;/title&gt;
    &lt;price&gt;29.99&lt;/price&gt;
  &lt;/book&gt;
  </code></pre>
  
  <p>I understand the xpath query to select such an element (/bookstore/book[price=29.99]) but
  I am not able to print/dump it on stdout. If I use the '-v' option and use -v (.) I don't get the output as I want (with all the tags in it) I just get the text values. There ought to be a way to simply dump selected element as it is, and that's what I am looking for.</p>
  
  <p>Thanks in anticipation. </p>