다음을 통해 공유


XmlNodeType 열거형

노드 형식을 지정합니다.

네임스페이스: System.Xml
어셈블리: System.Xml(system.xml.dll)

구문

‘선언
Public Enumeration XmlNodeType
‘사용 방법
Dim instance As XmlNodeType
public enum XmlNodeType
public enum class XmlNodeType
public enum XmlNodeType
public enum XmlNodeType

멤버

  멤버 이름 설명
Supported by the .NET Compact Framework Attribute 특성입니다(예를 들어, id='123'). 

Attribute노드는 다음 형식의 자식 노드, 즉 TextEntityReference를 가질 수 있습니다 . Attribute 노드는 다른 노드 형식의 자식 노드가 될 수 없습니다. Element의 자식 노드도 될 수 없습니다.

Supported by the .NET Compact Framework CDATA CDATA 섹션입니다(예를 들어, <![CDATA[my escaped text]]>). 

CDATA 섹션은 태그로 인식될 텍스트의 블록을 이스케이프하는 데 사용됩니다. CDATA 노드는 자식 노드를 가질 수 없습니다. 이 노드는 DocumentFragment , EntityReferenceElement 노드의 자식 노드가 될 수 있습니다.

Supported by the .NET Compact Framework Comment 주석입니다(예를 들어, <!-- my comment -->). 

Comment 노드는 자식 노드를 가질 수 없습니다. 이 노드는 Document , DocumentFragment , ElementEntityReference 노드의 자식 노드가 될 수 있습니다.

Supported by the .NET Compact Framework Document 문서 트리의 루트인 문서 개체를 사용하여 전체 XML 문서에 액세스할 수 있습니다. 

Document 노드는 XmlDeclaration , Element(최대 하나), ProcessingInstruction , CommentDocumentType 형식의 자식 노드를 가질 수 있습니다. 이 노드는 다른 노드의 자식 노드가 될 수 없습니다.

Supported by the .NET Compact Framework DocumentFragment 문서 단편입니다. 

DocumentFragment 노드는 노드나 하위 트리를 문서에 포함시키지 않고 문서와 연결합니다. DocumentFragment 노드는 Element , ProcessingInstruction , Comment , Text , CDATAEntityReference 형식의 자식 노드를 가질 수 있습니다. 이 노드는 다른 노드의 자식 노드가 될 수 없습니다.

Supported by the .NET Compact Framework DocumentType 다음 태그를 사용한 문서 형식 선언입니다(예를 들어, <!DOCTYPE...>). 

DocumentType 노드는 NotationEntity 형식의 자식 노드를 가질 수 있습니다 . 이 노드는 Document 노드의 자식 노드가 될 수 있습니다.

Supported by the .NET Compact Framework Element 요소입니다(예를 들어, <item>). 

Element 노드는 Element, Text, Comment, ProcessingInstruction, CDATAEntityReference 형식의 자식 노드를 가질 수 있습니다. 이 노드는 Document , DocumentFragment , EntityReferenceElement 노드의 자식 노드가 될 수 있습니다.

Supported by the .NET Compact Framework EndElement 끝 요소 태그입니다(예를 들어, </item>). 

XmlReader가 요소의 끝에 도달하면 EndElement 노드가 반환됩니다.

Supported by the .NET Compact Framework EndEntity ResolveEntity의 호출 결과 XmlReader가 대체 엔터티 끝에 도달했을 때 반환됩니다. 
Supported by the .NET Compact Framework Entity 엔터티 선업입니다(예를 들어, <!ENTITY...>). 

Entity 노드는 확장 엔터티를 나타내는 자식 노드 , 즉 TextEntityReference 노드를 가질 수 있습니다. 이 노드는 DocumentType 노드의 자식 노드가 될 수 있습니다.

Supported by the .NET Compact Framework EntityReference 엔터티 참조입니다(예를 들어, &num;). 

EntityReference 노드는 Element, ProcessingInstruction, Comment, Text, CDATAEntityReference 형식의 자식 노드를 가질 수 있습니다. 이 노드는 Attribute , DocumentFragment , ElementEntityReference 노드의 자식 노드가 될 수 있습니다.

Supported by the .NET Compact Framework None Read 메서드가 호출되지 않은 경우 XmlReader에 의해 반환됩니다. 
Supported by the .NET Compact Framework Notation 문서 형식 선언 표기법입니다(예를 들어, <!NOTATION...>). 

Notation 노드는 자식 노드를 가질 수 없습니다. 이 노드는 DocumentType 노드의 자식 노드가 될 수 있습니다.

Supported by the .NET Compact Framework ProcessingInstruction 처리 명령입니다(예를 들어, <?pi test?>). 

ProcessingInstruction 노드는 자식 노드를 가질 수 없습니다. 이 노드는 Document , DocumentFragment , ElementEntityReference 노드의 자식 노드가 될 수 있습니다.

Supported by the .NET Compact Framework SignificantWhitespace 복합 콘텐츠 모델에서 태그들 사이의 공백 또는 xml:space="preserve" 범위 내의 공백입니다. 
Supported by the .NET Compact Framework Text 노드의 텍스트 내용입니다. 

Text 노드는 자식 노드를 가질 수 없습니다. 이 노드는 Attribute , DocumentFragment , ElementEntityReference 노드의 자식 노드가 될 수 있습니다.

Supported by the .NET Compact Framework Whitespace 태그들 사이의 공백입니다. 
Supported by the .NET Compact Framework XmlDeclaration XML 선언입니다(예를 들어, <?xml version='1.0'?>). 

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

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

.NET Compact Framework

2.0, 1.0에서 지원

참고 항목

참조

System.Xml 네임스페이스