阅读背景:

使用attribute定位xml节点,然后使用simpleXML返回不同属性的值

来源:互联网 

I have some xml:

我有一些xml:

<release id="2276808" status="Accepted">
    <images>
         <image height="600" type="primary" uri="https://s.dsimg.com/image/R-2276808-1302966902.jpeg" uri150="https://s.dsimg.com/image/R-150-2276808-1302966902.jpeg" width="600"/>                       
         <image height="600" type="secondary" uri="https://s.dsimg.com/image/R-2276808-1302966912.jpeg" uri150="https://s.dsimg.com/image/R-150-2276808-1302966912.jpeg" width="600"/>  
         <image height="600" type="secondary" uri="https://s.dsimg.com/image/R-2276808-1302966919.jpeg" uri150="https://s.dsimg.com/image/R-150-2276808-1302966919.jpeg" width="600"/><image height="600" type="secondary" uri="https://s.dsimg.com/image/R-2276808-1302966929.jpeg" uri150="https://s.dsimg.com/image/R-150-2276808-1302966929.jpeg" width="600"/>
    </images> ...
<release id="2276



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: