Enum ContentType

  • 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, and TEXT, 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.

ContentType

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

PropertyTypeDescription
CDATAEnumAn XML CDATASection node.
COMMENTEnumAn XML Comment node.
DOCTYPEEnumAn XML DocumentType node.
ELEMENTEnumAn XML Element node.
ENTITYREFEnumAn XML EntityReference node.
PROCESSINGINSTRUCTIONEnumAn XML ProcessingInstruction node.
TEXTEnumAn XML Text node.