XmlNode和XmlElement有什么区别?

hillseok 2005-03-03 04:06:03
我在使用XmlNode和XmlElement的过程中,发现他们实现的功能基本都是一样的。请教各位大大,两者之间到底有什么区别?
...全文
162 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
孟子E章 2005-03-03
  • 打赏
  • 举报
回复
XmlElement从XmlNode继承而来,功能基本相同,但XmlElement有更多的功能

XmlElements are a type of node. In fact, if you look at the members of XmlNode and XmlElement in the .NET Framework, you will see that they are very much alike, but XmlElement has more going on. It inherits XmlNode and then is further customized. This is because an element is more specialized. A node is more general in scope. The document is a node, a processing instruction is a node, and so forth. Elements are different. If you look at the XmlNodeType property of an element, you will see that it is Element, one of the many types of nodes you find.
liulxmooo 2005-03-03
  • 打赏
  • 举报
回复
up

110,566

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧