1.公有的方法
SimpleXMLElement
implements Traversable{
/* 方法 */
final
public
__construct (
string
}
$data
[,
int $options
= 0 [,
bool $data_is_url
= false [,
string $ns
= "" [,
bool $is_prefix
= false ]]]] )
2.创建对象
$rsp_xml_obj = @new SimpleXMLElement($response);
得到就是一个DOM元素,可以根据已知的标签名,直接获得dom内容,如:
<header></header>
<body><lList></lList></body>
==>
$rsp_xml_obj->header
$rsp_xml_obj->body
$rsp_xml_obj->body->lList