changed simple_load_xml to use curl