Originally Posted By: hybrid8
I'm running the script from cygwin on a windows box


You're on Windows? You're parsing XML? Use PowerShell. It supports XPath and XSLT (because it's .NET).
_________________________
-- roger