Add xml parsing and status check