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 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器