Thanks Kip, I certainly picked up few handy tips
from this article.
Matt's XML::PYX is another module that provides
command line functionality. For example this one-liner prints statistics on how many times each element type occurs in a document:
pyx doc.xml | sed -n 's/^(//p' | sort | uniq -c
|