다음을 통해 공유


XmlNode 클래스

XML 문서의 단일 노드를 나타냅니다.

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

구문

‘선언
Public MustInherit Class XmlNode
    Implements ICloneable, IEnumerable, IXPathNavigable
‘사용 방법
Dim instance As XmlNode
public abstract class XmlNode : ICloneable, IEnumerable, IXPathNavigable
public ref class XmlNode abstract : ICloneable, IEnumerable, IXPathNavigable
public abstract class XmlNode implements ICloneable, IEnumerable, 
    IXPathNavigable
public abstract class XmlNode implements ICloneable, IEnumerable, 
    IXPathNavigable

설명

이 클래스에서는 W3C DOM(문서 개체 모델) Level 1 Core 및 Core DOM Level 2를 구현합니다. DOM은 XML 문서의 메모리 내(캐시) 트리 표현입니다. XmlNode는 .NET에서 구현된 DOM의 기본 클래스에 해당합니다. 이 클래스는 XPath 선택을 지원하며 편집 기능을 제공합니다. XmlDocument 클래스는 XmlNode를 확장하고 XML 문서를 나타냅니다. XmlDocument를 사용하여 XML 데이터를 로드하여 저장할 수 있습니다. 또한 노드 생성 메서드도 포함합니다. 자세한 내용은 XML DOM(문서 개체 모델)을 참조하십시오.

Security note보안 참고

XmlException 클래스와 같이 XmlNode를 사용하여 발생하는 예외에는 신뢰할 수 없는 시나리오에서 노출되면 안 되는 중요 정보가 포함될 수 있습니다. 이 중요 정보가 신뢰할 수 없는 시나리오에서 노출되지 않도록 예외를 적절하게 처리해야 합니다.

상속 계층 구조

System.Object
  System.Xml.XmlNode
     파생 클래스

스레드로부터의 안전성

이 형식의 모든 public static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

플랫폼

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에서 지원

참고 항목

참조

XmlNode 멤버
System.Xml 네임스페이스
SelectNodes

기타 리소스

DOM에서 새 노드 만들기