XmlNodeType 열거형

정의

노드의 형식을 지정합니다.

public enum class XmlNodeType
public enum XmlNodeType
type XmlNodeType = 
Public Enum XmlNodeType
상속
XmlNodeType

필드

Name Description
None 0

메서드가 XmlReader 호출되지 않은 경우 Read 이 값이 반환됩니다.

Element 1

요소(예: <item> )입니다.

Attribute 2

특성(예: id='123' )입니다.

Text 3

노드의 텍스트 콘텐츠입니다.

노드에는 Text 자식 노드가 있을 수 없습니다. , 및 AttributeDocumentFragment 노드의 ElementEntityReference자식 노드로 표시할 수 있습니다.

CDATA 4

CDATA 섹션(예: <![CDATA[my escaped text]]> ).

EntityReference 5

엔터티(예: &num; )에 대한 참조입니다.

Entity 6

엔터티 선언(예: <!ENTITY...> )입니다.

ProcessingInstruction 7

처리 명령(예: <?pi test?> )입니다.

Comment 8

주석(예: <!-- my comment --> )입니다.

Document 9

문서 트리의 루트로서 전체 XML 문서에 대한 액세스를 제공하는 문서 개체입니다.

DocumentType 10

다음 태그(예 <!DOCTYPE...> : )로 표시된 문서 형식 선언입니다.

DocumentFragment 11

문서 조각입니다.

Notation 12

문서 형식 선언(예: <!NOTATION...> )의 표기법입니다.

Whitespace 13

태그 사이의 공백입니다.

SignificantWhitespace 14

혼합 콘텐츠 모델의 태그 간 공백 또는 범위 내 xml:space="preserve" 의 공백입니다.

EndElement 15

끝 요소 태그(예: </item> )입니다.

EndEntity 16

에 대한 호출XmlReader의 결과로 엔터티 교체가 끝날 때 ResolveEntity() 반환됩니다.

XmlDeclaration 17

XML 선언(예: <?xml version='1.0'?> )입니다.

노드는 XmlDeclaration 문서의 첫 번째 노드여야 합니다. 그것은 아이들을 가질 수 없습니다. 노드의 자식입니다 Document . 버전 및 인코딩 정보를 제공하는 특성이 있을 수 있습니다.

설명

다음 표에서는 XML 노드와 부모 및 자식 노드에 대한 추가 정보를 제공합니다.

Field Description 자식 노드를 포함할 수 있습니다. 다음의 자식 노드일 수 있습니다.
Attribute EntityReference, Text 없음. 의 자식 노드 Element로 간주되지 않습니다.
CDATA CDATA 섹션은 태그로 인식되는 텍스트 블록을 이스케이프하는 데 사용됩니다. 없음. DocumentFragment, EntityReferenceElement
Comment 없음. Document, , DocumentFragmentEntityReference
Document XmlDeclaration, Element (최대 1개), ProcessingInstruction, CommentDocumentType None
DocumentFragment 실제로 문서에 포함되지 않고 노드 또는 하위 트리를 문서와 연결합니다. Element, ProcessingInstruction, Comment, Text, CDATAEntityReference 없음.
DocumentType Notation, Entity None
Element Element, Text, Comment, ProcessingInstruction, CDATAEntityReference Document, DocumentFragment, , EntityReference, Element
EndElement 요소의 XmlReader 끝에 도달하면 반환됩니다.
EndEntity
Entity 확장된 엔터티를 나타내는 자식 노드(예: TextEntityReference 노드) DocumentType
EntityReference Element, ProcessingInstruction, Comment, Text, CDATAEntityReference Attribute, DocumentFragment, , Element, EntityReference
None
Notation None DocumentType
ProcessingInstruction None Document, DocumentFragment, , Element, EntityReference
SignificantWhitespace
Text None Attribute, DocumentFragment, , Element, EntityReference
Whitespace
XmlDeclaration 문서의 첫 번째 노드여야 합니다. 버전 및 인코딩 정보를 제공하는 특성이 있을 수 있습니다. None Document

적용 대상