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条回答

    报告相同问题?

    悬赏问题

    • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
    • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
    • ¥30 python代码,帮调试
    • ¥15 #MATLAB仿真#车辆换道路径规划
    • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
    • ¥15 数据可视化Python
    • ¥15 要给毕业设计添加扫码登录的功能!!有偿
    • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
    • ¥15 微信公众号自制会员卡没有收款渠道啊
    • ¥100 Jenkins自动化部署—悬赏100元