lib/SteamCondenser/Community/XMLData.php
protected function getData($url) {
        if (!$xml = file_get_contents($url)) {
            preg_match('/^.* (\d{3}) (.*)$/', $http_response_header[0], $http_status);
            $errorMessage = "Failed to retrieve XML data because of an HTTP error: {$http_status[1]} (status code: {$http_status[0]})";
            throw new SteamCondenserException($errorMessage, 0);
        }

        try {
            return new \SimpleXMLElement($xml);
        } catch (\Exception $e) {
            $errorMessage = "XML could not be parsed: " . $e->getMessage();
            throw new SteamCondenserException($errorMessage, 0, $e);
        }
    }
protected function getData($url) {
        if (!$xml = file_get_contents($url)) {
            preg_match('/^.* (\d{3}) (.*)$/', $http_response_header[0], $http_status);
            $errorMessage = "Failed to retrieve XML data because of an HTTP error: {$http_status[1]} (status code: {$http_status[0]})";
            throw new SteamCondenserException($errorMessage, 0);
        }

        try {
            return new \SimpleXMLElement($xml);
        } catch (\Exception $e) {
            $errorMessage = "XML could not be parsed: " . $e->getMessage();
            throw new SteamCondenserException($errorMessage, 0, $e);
        }
    }
Loads XML data from the given URL and returns it parsed into a
<var>SimpleXMLElement</var>

@param string $url The URL to load the data from
@return \SimpleXMLElement The parsed XML data
@throws SteamCondenserException if the data cannot be parsed