besling 2015-10-09 07:48 采纳率: 0%
浏览 9727

SOAP-ENV:Envelope格式的xml解析问题

 <?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://appleworld.com/api/schema">
    <SOAP-ENV:Body>
        <ns1:getHotelDetailsRS>
            <ns1:header version="2.1" echoToken="1444372751" result="SUCCESS" count="1" />
            <ns1:request hotel="06122046" langMode="D" customerLang="zh" />
            <ns1:response>
                <ns1:hotel id="06122046" name="AGRABAD HOTEL">
                    <ns1:location city="CHGG" cityName="CHITTAGONG" district="" state="" stateName="" country="BD" countryName="BANGLADESH" area="1" areaName="ASIA" />
                    <ns1:contact phone="+880 31713311" fax="+880 31710572" address="Agrabad Commercial Area, Gpo Box 147, Chittagong, 4000, Bangladesh" zip="4000" url="http://www.agrabadhotel.com/" email="" />
                    <ns1:stars>4</ns1:stars>
                    <ns1:old_name></ns1:old_name>
                    <ns1:description></ns1:description>
                    <ns1:images />
                    <ns1:latitude></ns1:latitude>
                    <ns1:longitude></ns1:longitude>
                    <ns1:facilityInfo />
                </ns1:hotel>
            </ns1:response>
        </ns1:getHotelDetailsRS>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

这样的xml,在php中如果解析呢

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 微信会员卡接入微信支付商户号收款
    • ¥15 如何获取烟草零售终端数据
    • ¥15 数学建模招标中位数问题
    • ¥15 phython路径名过长报错 不知道什么问题
    • ¥15 深度学习中模型转换该怎么实现
    • ¥15 HLs设计手写数字识别程序编译通不过
    • ¥15 Stata外部命令安装问题求帮助!
    • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
    • ¥15 TYPCE母转母,插入认方向
    • ¥15 如何用python向钉钉机器人发送可以放大的图片?