AI-generated Key Takeaways
-
ContentType
is an enumeration used to represent the types of XML content nodes in Apps Script. -
The available
ContentType
properties include:CDATA
,COMMENT
,DOCTYPE
,ELEMENT
,ENTITYREF
,PROCESSINGINSTRUCTION
, andTEXT
, each representing a different type of XML node. -
To use a ContentType property, call its parent class, name, and the specific property, such as
XmlService.ContentType.CDATA
.
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 XML CDATASection node. |
COMMENT | Enum | An XML Comment node. |
DOCTYPE | Enum | An XML Document node. |
ELEMENT | Enum | An XML Element node. |
ENTITYREF | Enum | An XML Entity node. |
PROCESSINGINSTRUCTION | Enum | An XML Processing node. |
TEXT | Enum | An XML Text node. |