Enum ContentType Stay organized with collections Save and categorize content based on your preferences.
Page Summary
ContentType is an enumeration representing the types of XML content nodes.
To call an enum, you call its parent class, name, and property, such as
XmlService.ContentType.CDATA.The ContentType enum includes properties for various XML node types like CDATA, COMMENT, DOCTYPE, ELEMENT, ENTITYREF, PROCESSINGINSTRUCTION, and TEXT.
An enumeration representing the types of XML content nodes.
To call an enum, you call its parent class, name, and property. For example,XmlService.ContentType.CDATA.
Properties
| Property | Type | Description |
|---|---|---|
CDATA | Enum | An XMLCDATASection node. |
COMMENT | Enum | An XMLComment node. |
DOCTYPE | Enum | An XMLDocument node. |
ELEMENT | Enum | An XMLElement node. |
ENTITYREF | Enum | An XMLEntity node. |
PROCESSINGINSTRUCTION | Enum | An XMLProcessing node. |
TEXT | Enum | An XMLText node. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-11 UTC.