Good news!
This works 100%.
PHP Code:
function parse_wowarmory($url)
{
ini_set('user_agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)');
$ch = curl_init();
$timeout = 30;
$xml = file_get_contents($url);
curl_setopt($ch, CURLOPT_URL, $xml);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
require_once(DIR . '/includes/class_xml.php');
$xmlobj = new vB_XML_Parser($xml);
return $xmlobj->parse();
curl_exec($ch);
curl_close($ch);
}
I'm doing some tests and will report back in a bit.