Why don't use curlxml() function also in this case?