catching exception on bad xml