Retrieving status code of XML