XmlNodeType 열거형

정의

노드 형식을 지정합니다.

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

필드

Attribute 2

특성입니다(예를 들어, id='123').

CDATA 4

CDATA 섹션입니다(예를 들어, <![CDATA[my escaped text]]>).

Comment 8

주석입니다(예를 들어, <!-- my comment -->).

Document 9

문서 트리의 루트인 문서 개체를 사용하여 전체 XML 문서에 액세스할 수 있습니다.

DocumentFragment 11

문서 단편입니다.

DocumentType 10

다음 태그를 사용한 문서 형식 선언입니다(예를 들어, <!DOCTYPE...>).

Element 1

요소입니다(예를 들어, <item>).

EndElement 15

끝 요소 태그입니다(예를 들어, </item>).

EndEntity 16

ResolveEntity()의 호출 결과 XmlReader가 대체 엔터티 끝에 도달했을 때 반환됩니다.

Entity 6

엔터티 선업입니다(예를 들어, <!ENTITY...>).

EntityReference 5

엔터티 참조입니다(예를 들어, &num;).

None 0

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

Notation 12

문서 형식 선언 표기법입니다(예를 들어, <!NOTATION...>).

ProcessingInstruction 7

처리 명령입니다(예를 들어, <?pi test?>).

SignificantWhitespace 14

복합 콘텐츠 모델에서 태그들 사이의 공백 또는 xml:space="preserve" 범위 내의 공백입니다.

Text 3

노드의 텍스트 내용입니다.

Text 노드에는 자식 노드가 포함될 수 없습니다. Attribute, DocumentFragment, Element, EntityReference 노드의 자식 노드로 표시될 수 있습니다.

Whitespace 13

태그들 사이의 공백입니다.

XmlDeclaration 17

XML 선언입니다(예를 들어, <?xml version='1.0'?>).

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

설명

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

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

적용 대상