使用SimpleXML实现对XML数据的遍历操作
1、① 使用for…循环遍历xml数据

2、② 使用foreach…循环遍历xml数据

3、③ 使用children方法实现对xml数据的遍历
要使用到的知识点:children方法
public SimpleXMLElement SimpleXMLElement::children() :获取当前元素的所有子节点

4、运行结果:

阅读量:64
阅读量:190
阅读量:105
阅读量:91
阅读量:171
1、① 使用for…循环遍历xml数据

2、② 使用foreach…循环遍历xml数据

3、③ 使用children方法实现对xml数据的遍历
要使用到的知识点:children方法
public SimpleXMLElement SimpleXMLElement::children() :获取当前元素的所有子节点

4、运行结果:
