title: How to parse XML in Bash?
body: <p>Ideally, what I would like to be able to do is:</p>
  
  <pre><code>cat xhtmlfile.xhtml |
  getElementViaXPath --path='/html/head/title' |
  sed -e 's%(^&lt;title&gt;|&lt;/title&gt;$)%%g' &gt; titleOfXHTMLPage.txt
  </code></pre>