首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

winform 中关于XML 处理的有关问题。多谢

2012-06-21 
winform 中关于XML 处理的问题。谢谢.vs 2000 中.如果 读取 XML 并储存在 数组中.XML code?xml version1

winform 中关于XML 处理的问题。谢谢.
vs 2000 中.
如果 读取 XML 并储存在 数组中. 

XML code
<?xml version="1.0" encoding="utf-8"?><current>    <order id='1'>        <info>            <ordernum>3823</ordernum>        </info>                <product>            <pid id='1'>                <pname>goods1</pname>                <num>1</num>            </pid>                        <pid id='2'>                <pname>goods2</pname>                <num>2</num>            </pid>        </product>                <diqu>            <city>city1</city>            <county>county1</county>            <detailed>detailed1</detailed>        </diqu>                <contact>            <moblie>13300000000</moblie>            <tel>2220000</tel>            <member>member</member>        </contact>    </order>        <order id='2'>        <info>            <ordernum>3824</ordernum>        </info>                <product>            <pid id='1'>                <pname>goods1</pname>                <num>1</num>            </pid>                        <pid id='2'>                <pname>goods2</pname>                <num>2</num>            </pid>        </product>                <diqu>            <city>city1</city>            <county>county1</county>            <detailed>detailed1</detailed>        </diqu>                <contact>            <moblie>13300000000</moblie>            <tel>2220000</tel>            <member>member</member>        </contact>    </order></current>


XML 中有2条 order 数据。 取出 <order> 中的 <info> <product> <diqu> <contact> 请问怎么写呢??
 能贴代码吗? 谢谢.. 因为刚学.. 说理论的话 。. 不明白.

[解决办法]
一般都是到节点后,进行Children或者Items的循环啊。。

热点排行