replacing simplexml call with curl call

replacing simplexml call with a curl call to remove FOpen dependency.