如何使用循环解析/获取位置节点值:印度新德里,以及如何从该 xml 文件中获取多个教育节点值,如 SVM、HHHHH 等。XML:
<?xml version="1.0" encoding="UTF-8"?>
<facebookfriends>
<data>
<id>
[Removed]
</id>
<location>
<id>
[Removed]
</id>
<name>
New Delhi, India
</name>
</location>
<name>
XYZZZZZZZZZZ
</name>
<education>
<school>
<id>
[Removed]
</id>
<name>
SVM
</name>
</school>
<year>
<id>
[Removed]
</id>
<name>
2001
</name>
</year>
<type>
High School
</type>
</education>
<education>
<concentration>
<id>
[Removed]
</id>
<name>
Computer Science
</name>
</concentration>
<school>
<id>
[Removed]
</id>
<name>
HHHHHHHHHHHHH
</name>
</school>
<type>
Graduate School
</type>
</education>
</data>
</facebookfriends>