try catch xml parser