Enum ContentType
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
コンテンツ タイプXML コンテンツ ノードのタイプを表す列挙型。
列挙型を呼び出すには、その親クラス、名前、プロパティを呼び出します。たとえば、
XmlService.ContentType.CDATA
です。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003e\u003ccode\u003eContentType\u003c/code\u003e is an enumeration used to represent the types of XML content nodes in Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eThe available \u003ccode\u003eContentType\u003c/code\u003e properties include: \u003ccode\u003eCDATA\u003c/code\u003e, \u003ccode\u003eCOMMENT\u003c/code\u003e, \u003ccode\u003eDOCTYPE\u003c/code\u003e, \u003ccode\u003eELEMENT\u003c/code\u003e, \u003ccode\u003eENTITYREF\u003c/code\u003e, \u003ccode\u003ePROCESSINGINSTRUCTION\u003c/code\u003e, and \u003ccode\u003eTEXT\u003c/code\u003e, each representing a different type of XML node.\u003c/p\u003e\n"],["\u003cp\u003eTo use a ContentType property, call its parent class, name, and the specific property, such as \u003ccode\u003eXmlService.ContentType.CDATA\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum ContentType\n\nContentType\n\nAn enumeration representing the types of XML content nodes.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nXmlService.ContentType.CDATA`. \n\n### Properties\n\n| Property | Type | Description |\n|-------------------------|--------|-------------------------------------------------------------------------------------------------|\n| `CDATA` | `Enum` | An XML [CDATASection](/apps-script/reference/xml-service/cdata) node. |\n| `COMMENT` | `Enum` | An XML [Comment](/apps-script/reference/xml-service/comment) node. |\n| `DOCTYPE` | `Enum` | An XML [DocumentType](/apps-script/reference/xml-service/doc-type) node. |\n| `ELEMENT` | `Enum` | An XML [Element](/apps-script/reference/xml-service/element) node. |\n| `ENTITYREF` | `Enum` | An XML [EntityReference](/apps-script/reference/xml-service/entity-ref) node. |\n| `PROCESSINGINSTRUCTION` | `Enum` | An XML [ProcessingInstruction](/apps-script/reference/xml-service/processing-instruction) node. |\n| `TEXT` | `Enum` | An XML [Text](/apps-script/reference/xml-service/text) node. |"]]