Adds minimal error handling in case xml document retreived is no good