private function getAPIData($charId) {
        $url = 'https://api.eveonline.com/eve/CharacterInfo.xml.aspx?characterID='.(int)$charId;
        $data = file_get_contents($url);
        $xml = simplexml_load_string($data);
        return $xml->result;
    }