in reply to How to run multiple xml in a directory on a single perl script
Parse an XML file? ==> use an XML parser! E.g. XML::Twig or XML::LibXML
Using REs is sooner or later going to bite you.
Cheers
Harry