Thanks. I do some reading up on XPath then (it is several years ago I last used it). I seem to have had the wrong impression that it needed XML to work upon.
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
Comment on Re^4: A better, more powerful fileglob?