Enum ContentType
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
콘텐츠유형
XML 콘텐츠 노드의 유형을 나타내는 열거형입니다.
enum을 호출하려면 상위 클래스, 이름, 속성을 호출합니다. 예를 들면
XmlService.ContentType.CDATA
입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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. |"]]