Your previous questions about working with HTML/XML have had solutions provided using proper parsing modules. The post I linked to was about working with sentences split up by HTML tags, here you have XML. How is this not similar?
In reply to Re^3: Getting start and end xml tags
by marto
in thread Getting start and end xml tags
by corfuitl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |