title: Format and combine output of xpath in bash
body: <p>I'm trying to parse this xml input using the bash utility <code>xpath</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;feed version="0.3" xmlns="http://purl.org/atom/ns#"&gt;
      &lt;entry&gt;
          &lt;title&gt;Title 1&lt;/title&gt;
          &lt;author&gt;Author 1&lt;/author&gt;
      &lt;/entry&gt;
      &lt;entry&gt;
          &lt;title&gt;Title 2&lt;/title&gt;
          &lt;author&gt;Author 2&lt;/author&gt;
      &lt;/entry&gt;
  &lt;/feed&gt;
  </code></pre>
  
  <p>I need an output in this format:</p>
  
  <pre><code>1. Title: Title 1
     Author: Author 1
  2. Title: Title 2
     Author: Author 2
  </code></pre>
  
  <p>I've fiddled around a lot trying to achieve this in a simple way (using only a single <code>xpath</code> command, or at most 3-4 commands), but all my efforts have been in vain. Could anyone please help me out with this?</p>