XSH - Xpath風にXMLにアクセスできるシェル
XSH: Interactively Manipulate and Analyze XML Data
こんな感じらしい。
ma2> $a := open "example.xml"
ma2> ls //book/title
ma2>All Quiet on the Western Front
ma2>A Separate Peace
ma2>Oliver Twist
ma2>The Call of the Wild
ma2>The Picture of Dorian Gray
ma2>