in reply to Re^2: Getting start and end xml tagsin thread Getting start and end xml tags
It sounds as if now is a good time to familiarize yourself with one of these modules.