XmlNodeType 열거형
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
노드의 형식을 지정합니다.
public enum class XmlNodeType
public enum XmlNodeType
type XmlNodeType =
Public Enum XmlNodeType
- 상속
필드
| Name | 값 | Description |
|---|---|---|
| None | 0 | 메서드가 XmlReader 호출되지 않은 경우 |
| Element | 1 | 요소(예: |
| Attribute | 2 | 특성(예: |
| Text | 3 | 노드의 텍스트 콘텐츠입니다. 노드에는 Text 자식 노드가 있을 수 없습니다. , 및 AttributeDocumentFragment 노드의 ElementEntityReference자식 노드로 표시할 수 있습니다. |
| CDATA | 4 | CDATA 섹션(예: |
| EntityReference | 5 | 엔터티(예: |
| Entity | 6 | 엔터티 선언(예: |
| ProcessingInstruction | 7 | 처리 명령(예: |
| Comment | 8 | 주석(예: |
| Document | 9 | 문서 트리의 루트로서 전체 XML 문서에 대한 액세스를 제공하는 문서 개체입니다. |
| DocumentType | 10 | 다음 태그(예 |
| DocumentFragment | 11 | 문서 조각입니다. |
| Notation | 12 | 문서 형식 선언(예: |
| Whitespace | 13 | 태그 사이의 공백입니다. |
| SignificantWhitespace | 14 | 혼합 콘텐츠 모델의 태그 간 공백 또는 범위 내 |
| EndElement | 15 | 끝 요소 태그(예: |
| EndEntity | 16 | 에 대한 호출 |
| XmlDeclaration | 17 | XML 선언(예: 노드는 XmlDeclaration 문서의 첫 번째 노드여야 합니다. 그것은 아이들을 가질 수 없습니다. 노드의 자식입니다 Document . 버전 및 인코딩 정보를 제공하는 특성이 있을 수 있습니다. |
설명
다음 표에서는 XML 노드와 부모 및 자식 노드에 대한 추가 정보를 제공합니다.
| Field | Description | 자식 노드를 포함할 수 있습니다. | 다음의 자식 노드일 수 있습니다. |
|---|---|---|---|
Attribute |
EntityReference, Text |
없음. 의 자식 노드 Element로 간주되지 않습니다. |
|
CDATA |
CDATA 섹션은 태그로 인식되는 텍스트 블록을 이스케이프하는 데 사용됩니다. | 없음. |
DocumentFragment, EntityReference 및 Element |
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 |