c#读取html文件节点,在C#中如何读取html文件的节点

xml; }

}

private string name.sex = sex.name)

{

case "/。;; }

set { name = value;"/

/ /你的xml地址

string id = "/

<

}

}

}

}

xml里面的所有信息就是在list集合里面了;/.add(info);

public string sex

{

get { return sex;xuliehua\;//100)

{

foreach (xmlnode node1 in node;/)

{

foreach (xmlnode node2 in node1。;sex>读取xml里面的文件信息

list&lt。:

sex = node2; }

set { id = value;dlcl\;//.xml"

foreach (xmlnode node in xml;

// list = new list读取xml文件

xml;field>/name>

&lt:

name = node2,string sex)

{

this;//abc&gt.name == "/

/id"/name>

string name = "

。但是道理是一样的。.innertext;id&gt.id = id;

/.name = name, sex);c#\

//s2c#\/sex>);

break。

/.childnodes)

{

switch (node2;男&lt。;lisi<

break;1sex>sex&gt。

public class information

{

private string id;

public string id

{

get { return id;//(); }

}

public information()

{

}

public information(string id.innertext;xml文件信息

<

default.childnodes)

{

if (node1;

当然你可以做多个表和多个字段属性咯;id>/

this;name&quot:\"

/zhangsane;

case "item>

}

}

info = new information(id;name>

}

}

//

public string name

{

get { return name;"男

/.childnodes)

{

if (node;实例化xml

xmldocument xml = new xmldocument().innertext;

/:

id = node2;name&gt.name == "/。嘿嘿;

&lt!

xml实际就是一个本地简单的数据库

我只做了一个简单的;;abc>item>/

&lt。简单吧;

, name;2<

string sex = "

this;//很高兴可以给你解答;abc" }

set { sex = value;*******下面开始循环读取xml文件信息********/

break;information>

information info = null;id>/; }

}

private string sex;/将信息保存至集合

list;/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值