---
schema_version: "1"
id: f0c1b3672e2017cc1c83568418c447c4dc9149c0a3932ef431feee3ea1d85e8a
title: XmlNodeType Enum
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_enum_Dom_XmlNodeType.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_Dom_XmlNodeType.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9f338b967ae014ffee8fcb6112369ad75c76ed5d31bd3df88d4c32dc8f3ebce7
description: Specifies the node type in an XML document.
---
# XmlNodeType Enum

Specifies the node type in an XML document.

## Usage

Use XMLNodeType enum with the getNodeType() method in the XmlNode class.

## Enum Values

The following are the values of the Dom.XMLNodeType enum.

| Value | Description |
| --- | --- |
| COMMENT | Dom node of type comment. |
| ELEMENT | Dom node of type element. |
| TEXT | Dom node of type text. |