阅读背景:

使用SimpleXML / PHP从XML访问元素/属性

来源:互联网 

Quick question: I'm using PHP's SimpleXML object to parse an XML file. For the life of me, I can't figure out how to access specific elements. My question is what would my PHP look like to access the nodes and the info contained in the "data" attributes? I don't want to iterate through the entire document, I only want specific information from the nodes. I tried the following with no luck:Quick question: I'm using PHP's SimpleXML objec




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

分享到: