我有网址 www.test.com/test/xml
在xml文件中有
<channel>
<item id="001">
<title>a001</title>
<actorlist>
<actor>
<name> a1 </name>
<name_drama> d1 </name_drama>
</actor>
<actor>
<name> a2 </name>
<name_drama> d2 </name_drama>
</actor>
<actor>
<gallery>
<gimages>
<gsmall> sg1.png </gsmall>
<gmedium> mg1.png </gmedium>
<glarge> lg1.png </glarge>
</gimages>
<gimages>
<gsmall> sg2.png </gsmall>
<gmedium> mg2.png </gmedium>
<glarge> lg2.png </glarge>
</gimages>
<gimages>
<gallery>
</item>
<item id="002">
<title>b002</title>
<actorlist>
<actor>
<name> a12 </name>
<name_drama> d12 </name_drama>
</actor>
<actor>
<name> a22 </name>
<name_drama> d22 </name_drama>
</actor>
<actor>
<gallery>
<gimages>
<gsmall> sg12.png </gsmall>
<gmedium> mg12.png </gmedium>
<glarge> lg12.png </glarge>
</gimages>
<gimages>
<gsmall> sg22.png </gsmall>
<gmedium> mg22.png </gmedium>
<glarge> lg22.png </glarge>
</gimages>
<gimages>
<gallery>
</item>
<item id="003">
<title>c003</title>
<actorlist>
<actor>
<name> a13 </name>
<name_drama> d13 </name_drama>
</actor>
<actor>
<name> a23 </name>
<name_drama> d23 </name_drama>
</actor>
<actor>
<gallery>
<gimages>
<gsmall> sg13.png </gsmall>
<gmedium> mg13.png </gmedium>
<glarge> lg13.png </glarge>
</gimages>
<gimages>
<gsmall> sg23.png </gsmall>
<gmedium> mg23.png </gmedium>
<glarge> lg23.png </glarge>
</gimages>
<gimages>
<gallery>
</item>
<channel>
如何解析到
item1 = 标题:001,名称:a1,名称_戏剧:d1,名称:a2,名称_戏剧:d1。. .
item2 = 标题:002,名称:a12,名称_戏剧:d12,名称:a22,名称_戏剧:d22。. .
item3 = 标题:003,名称:a13,名称_戏剧:d13,名称:a23,名称_戏剧:d23。. .