读取XML问题(C#)
从Response读取的xml,转换成XmlDocument后怎样循环显示里面的内容
<?xml version="1.0" encoding="utf-8" ?>
- <Movies xmlns="http://www.mtime.com/">
- <Movie>
<MovieID>46029</MovieID>
<MovieName>集结号</MovieName>
</Movie>
- <Movie>
<MovieID>47872</MovieID>
<MovieName>投名状</MovieName>
</Movie>
- <Movie>
<MovieID>44836</MovieID>
<MovieName>蓝莓之夜</MovieName>
</Movie>
- <Movie>
<MovieID>55024</MovieID>
<MovieName>大电影2.0之两个傻瓜的荒唐事</MovieName>
</Movie>
- <Movie>
<MovieID>45549</MovieID>
<MovieName>战·鼓</MovieName>
</Movie>
</Movies>
--------------------编程问答-------------------- XmlDocument x=XmlDocumnet.Load(xxxx);
XmlNodes nodes=x.FindNodeByName(xxxx);
foreach(XmlNode node in nodes)
{
xxxxxx
}
补充:.NET技术 , C#