fix attribute error on error handling in xmlfile()