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

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

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

4、运行结果:

阅读量:68
阅读量:168
阅读量:142
阅读量:71
阅读量:124
1、① 使用for…循环遍历xml数据

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

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

4、运行结果:
