Enum ContentType

  • ContentType is an enumeration representing the types of XML content nodes.

  • To call an enum, you call its parent class, name, and property, such asXmlService.ContentType.CDATA.

  • The ContentType enum includes properties for various XML node types like CDATA, COMMENT, DOCTYPE, ELEMENT, ENTITYREF, PROCESSINGINSTRUCTION, and TEXT.

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 XMLCDATASection node.
COMMENTEnumAn XMLComment node.
DOCTYPEEnumAn XMLDocumentType node.
ELEMENTEnumAn XMLElement node.
ENTITYREFEnumAn XMLEntityReference node.
PROCESSINGINSTRUCTIONEnumAn XMLProcessingInstruction node.
TEXTEnumAn 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.