php soap返回的结果是xml,我用echo(htmlspecialchars($XXvar))可以显示出来,不懂如何直接操作xml,搜索引擎找到的例子都是直接加载某某xml文件的然后操作的,请问如何对返回的变量包含xml内容的进行操作
先谢谢大家
<?php
header("Content-Type: text/html; charset=utf-8"); $client = new SoapClient("http://ip/xxx?wsdl");
try {
$result = $client->someFunciton("xx","xxx");
//echo(htmlspecialchars($result));
} catch(SoapFault $e) {
echo "Sorry an error was caught executing your request: {$e->getMessage()}";
}
?>
先谢谢大家
<?php
header("Content-Type: text/html; charset=utf-8"); $client = new SoapClient("http://ip/xxx?wsdl");
try {
$result = $client->someFunciton("xx","xxx");
//echo(htmlspecialchars($result));
} catch(SoapFault $e) {
echo "Sorry an error was caught executing your request: {$e->getMessage()}";
}
?>
http://topic.csdn.net/u/20081129/11/6f226b76-2495-4eb5-a98b-246564bfb07e.html