xmlrpc_c::clientSimple myClient;
xmlrpc_c::value Result
...
myClient.call(serverUrl, "getattr", "s", &result, pName);
如果结果是数组,如何读取?
最佳答案
找到了....
typdef std::vector<xmlrpc_c::value> carray;
...
function(...){
carray c = xmlrpc_c::value_array(result).cvalue();
cout << xmlrpc_c::value_int(c[0]);
}
...
关于c++ - 如何从XML-RPC读取数组,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/4339520/