Ideally, what I would like to be able to do is:
cat xhtmlfile.xhtml | getElementViaXPath --path=\'/html/head/title\' | sed -e \'s%(^|
This is sufficient...
xpath xhtmlfile.xhtml '/html/head/title/text()' > titleOfXHTMLPage.txt