我有这个 XML:
<InternalData>
<DataSet>
<Table>
<Expire_x0>2050-12-12T00:00:00+02:00</Expire_x0>
</Table>
</DataSet>
</InternalData>
如何获取<Expire_x0>
标签的值?我试过这个:
$result = $s->__call("XmlString",array($params));
$obj_pros = get_object_vars($result);
$xml = $obj_pros['XmlStringResult'];
$xml = simplexml_load_string($xml);
$x = $xml->getElementsByTagName("Expire_x0");
echo $x;
没有成功。怎么了?