且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

C#XML如何获取元素的值?

更新时间:2023-11-25 09:17:34

你有两个appraoches:

1)使用简单的基于正则表达式的文本操作

2)将xml反序列化为对象而不是应用linq查询

这取决于你接下来会做什么......
You have two appraoches:
1) using simple regular expression based text manipulation
2) deserializing the xml to object and than applying a linq query
It depends what you will do next...