in reply to Poor Man's XML?

A quick thumb through The Complete HTML Reference came up with either using an id or class tag.

Then with your regex, you could base it on whatever class or id you've assigned to your lines.

Caveat: I don't know XML or if this would interfere with it, but it would probably do what you want quickly and without a whole lot of hassle.

Hope that helps!

Some people fall from grace. I prefer a running start...