$ch = curl_init($xml);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);$xmlDoc->loadXML(curl_exec($ch));curl_close($ch);