有段时间没接触XML了,近日做XML数据搜索,竟然发现自己晕在XML的各种概念里了,看来是把XML DOM的结构定义术语忘记得一干二净了。好记性不如烂笔头,还是把它摘出来为好。

实例XML文档内容:

XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text<?xml version="1.0" encoding="UTF-8"?>
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text
<catalog xmlns="">
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text  
<book id="bk101">
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text     
<author>Matthew</author>
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text     
<title>XML Developer</title>
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text     
<genre>Computer</genre>
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text     
<price>44.95</price>
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text     
<publish_date>2000-10-01</publish_date>
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text     
<description>After an inadvertant </description>
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text  
</book>
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text  
<book id="bk109">
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text     
<author>Kress, Peter</author>
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text     
<title>Paradox Lost</title>
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text     
<genre>Science Fiction</genre>
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text     
<price>6.95</price>
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text     
<publish_date>2000-11-02</publish_date>
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text     
<description>James Salway discovers</description>
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text  
</book>
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text
</catalog>


对应的概念术语:
XML DOM的结构概念图解-哪里是Element,哪里是Attribute,哪里是Text 

对应的API接口(暂且这么称呼):
<book id="bk109"> </book> 就是 IXMLDOMNode
所有的<book> 就是  IXMLDOMNodeList
authortitleprice 这些则是 IXMLDOMElement 
authortitleprice 的值则是 IXMLDOMText

相关文章:

  • 2021-10-23
  • 2021-08-27
  • 2022-02-08
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2021-09-01
猜你喜欢
  • 2021-06-04
  • 2021-10-18
  • 2021-10-11
  • 2021-05-24
  • 2021-11-18
  • 2021-12-05
  • 2021-12-18
相关资源
相似解决方案