in reply to XML tags

It depends on many, many things...

First of all, it would be really better that you generate valid XML documents

Second: how are the tags structured? How should the program know if it could close a tag?

Please, post some examples

Ciao!
--bronto

# Another Perl edition of a song:
# The End, by The Beatles
END {
  $you->take($love) eq $you->make($love) ;
}