added try/catch to catch failed xml read