TVSKIN源代码阅读日记(一)XML DOM Enumerated Constants

XML DOM Enumerated Constants

IXMLDOMNodeType ENUMERATIONS specifiy valid settings for the Document Object Model (DOM) node type. The node type determines valid values and whether the node can have child nodes.

Values

The IXMLDOMNodeType enumeration defines the following valid values.

NODE_ELEMENT

The node represents an element (its nodeTypeString property is “element”). An element node can have the following child types:Element, Text, Comment, Processing Instruction, CDATASection, and EntityReference. The Element node can be the child of the Document, DocumentFragment, EntityReference, and Element node.

NODE_ATTRIBUTE

The node represents an attributes of an element (it's nodeTypeString property is “attribute”). An attribute node can have the following childe node types:Text and EntityReference. The attribute node does not appear as the child node of any other node type; it is not considered a child node of an element.

NODE_TEXT

The node represents the text content of tag (its nodeTypeString property is “text”). An Text node cannot have any child nodes. The Text node can appear as the child node of the Attribute, DocumentFragment,Element, and EntityReference nodes.

NODE_CDATA_SECTION

The node represents a CDATA section in the XML source (its nodeTypeString property is “cdatasection”). CDATA section are used to escape blocks of text that would otherwise be recognized as markup. A CDATASection node cannot have any child nodes. The CDATASection node can appear as the child of the DocumentFragment, EntityReference, and Element nodes.

NODE_ENTITY_REFERENCE

The node represents a reference to an entity in the XML document (its nodeTypeString property is “entityreference”). This applies to all entities, including character entity reference.

An EntityReference node can have the following child node types: Element, ProcessingInstruction, Comment, Text, CDATASection, and EntityReference. The EntityReference node can appear as the child of the attribute, DocumentFragment, Element and EntityReference nodes.

NODE_ENTITY

The node represents an expanded entity (its nodeTypeString property is “entity”). An Entity node can have child nodes that represent the expanded entity (for example, Text and EntityReference). The entity node can appear as the child of the DocumentType node.

NODE_PROCESSING_INSTRUCTION

The node represents a processing instruction from the XML document (its nodeTypeString property is “processinginstruction”). A ProcessingInstruction node cannot have any child nodes. The ProcessingInstruction node can appear as the child of the DocumentType node.

NODE_COMMENT

The node represents a comment in the XML document (its nodeTypeString property is “comment”). A Comment node cannot have any child nodes. The comment node can appears as the child of the Document, DocumentFragment, Element, and EntityReference nodes.

NODE_DOCUMENT

The node represents a document object, that as the root of the document tree, provide access to the entire XML document (its nodeTypeString property is “document“). It is created using the progID “Microsoft.XMLDOM” or through a data island using or

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值