Thanks Shane. This would work for properly formated xml files. Unfortunately, I have at least one example where the file is one long line \:\( . Sorry I didn't mention it before.

It's so funny to me how I remember XML was the future... and how little it seems to be used, at least in a scripting environment.

Any other ideas?