fix problem with multiple files named a.*.xml
according to rneatherway.
Merge pull request #228 from tkesselring/feature/XML-Issue

fix problem with multiple files named a.*.xml