in reply to XML::XPath and processing multiple files

Have you chomped the filenames when reading them from the text file?