Added loop to handle XML data

Closes https://github.com/PistonDevelopers/collada/issues/14