在PHP中使用名称空间解析的XML

时间:2013-05-14 10:10:03

标签: php xml

我是PHP新手,

我收到服务器响应如下

HTTP/1.1 200 OK
Date: Tue, 14 May 2013 06:53:11 GMT
Server: Apache
Pragma: no-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Connection: close
Content-Type: text/xml;charset=UTF-8

<?xml version="1.0" encoding="UTF-8"?>
<serv:message xmlns:serv="http://www.webex.com/schemas/2002/06/service" xmlns:com="http://www.webex.com/schemas/2002/06/common">
    <serv:header>
        <serv:response>
            <serv:result>FAILURE</serv:result>
            <serv:reason>validation: unable to find FieldDescriptor for 'listControl' in ClassDescriptor of createMeeting</serv:reason>
            <serv:gsbStatus>PRIMARY</serv:gsbStatus>
            <serv:exceptionID>999999</serv:exceptionID>
        </serv:response>
    </serv:header>
    <serv:body>
        <serv:bodyContent/>
    </serv:body>
</serv:message>

如何从上面的响应中获取XML,如何删除内容

0 个答案:

没有答案