I've done some of it, but the code is horrible, and I want to re-do it. It uses xpath and 4dom; if someone wants the code to use as a source of ideas for a real version, let me know. /r$