XMLFileData is yet another subroutine its reading the files. I am new to perl and having trouble understanding what the code means it wouldn't be so bad but I didn't write it and its quite large and not all that modular either :(
ah code tags..I thought there must be an easier way.