Class DocType
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ডক টাইপ একটি XML Document Type
নোডের উপস্থাপনা।
বিস্তারিত ডকুমেন্টেশন
detach()
নোডটিকে এর মূল Element
নোড থেকে বিচ্ছিন্ন করে। যদি নোডের একটি অভিভাবক না থাকে, এই পদ্ধতির কোন প্রভাব নেই।
প্রত্যাবর্তন
Content
- বিচ্ছিন্ন নোড
get Element Name()
Doc Type
ঘোষণায় নির্দিষ্ট করা মূল Element
নোডের নাম পায়।
প্রত্যাবর্তন
String
— Doc Type
ঘোষণায় নির্দিষ্ট করা রুট Element
নোডের নাম
get Internal Subset()
Document Type
নোডের জন্য অভ্যন্তরীণ উপসেট ডেটা পায়।
প্রত্যাবর্তন
String
- অভ্যন্তরীণ উপসেট ডেটা
get Parent Element()
নোডের প্যারেন্ট Element
নোড পায়। যদি নোডের একটি অভিভাবক না থাকে, এই পদ্ধতিটি null
প্রদান করে।
প্রত্যাবর্তন
Element
- প্যারেন্ট Element
নোড
get Public Id()
Document Type
নোডের জন্য বাহ্যিক উপসেট ডেটার পাবলিক আইডি পায়।
প্রত্যাবর্তন
String
— বহিরাগত উপসেট ডেটার সর্বজনীন আইডি
get System Id()
Document Type
নোডের জন্য বাহ্যিক উপসেট ডেটার সিস্টেম আইডি পায়।
প্রত্যাবর্তন
String
— বহিরাগত উপসেট ডেটার সিস্টেম আইডি
get Value()
নোডের প্রত্যক্ষ বা পরোক্ষ সন্তান যে সমস্ত নোডের পাঠ্য মান পায়, সেগুলি নথিতে প্রদর্শিত ক্রমে।
প্রত্যাবর্তন
String
— নোডের প্রত্যক্ষ বা পরোক্ষ সন্তান যে সমস্ত নোডের পাঠ্য মান
set Element Name(name)
Doc Type
ঘোষণায় নির্দিষ্ট করতে রুট Element
নোডের নাম সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
name | String | Doc Type ঘোষণায় নির্দিষ্ট করার জন্য মূল Element নোডের নাম |
প্রত্যাবর্তন
Doc Type
— Document Type
নোড, চেইনিংয়ের জন্য
set Internal Subset(data)
Document Type
নোডের জন্য অভ্যন্তরীণ উপসেট ডেটা সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
data | String | সেট করার জন্য অভ্যন্তরীণ উপসেট ডেটা |
প্রত্যাবর্তন
Doc Type
— Document Type
নোড, চেইনিংয়ের জন্য
set Public Id(id)
Document Type
নোডের জন্য বাহ্যিক উপসেট ডেটার সর্বজনীন আইডি সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
id | String | সেট করার জন্য বাহ্যিক উপসেট ডেটার সর্বজনীন আইডি |
প্রত্যাবর্তন
Doc Type
— Document Type
নোড, চেইনিংয়ের জন্য
set System Id(id)
Document Type
নোডের জন্য বাহ্যিক উপসেট ডেটার সিস্টেম আইডি সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
id | String | সেট করার জন্য বাহ্যিক উপসেট ডেটার সিস্টেম আইডি |
প্রত্যাবর্তন
Doc Type
— Document Type
নোড, চেইনিংয়ের জন্য
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003eDocType\u003c/code\u003e represents an XML \u003ccode\u003eDocumentType\u003c/code\u003e node and provides methods to interact with its properties.\u003c/p\u003e\n"],["\u003cp\u003eYou can access and modify properties like the root element name, internal/external subset data, and public/system IDs.\u003c/p\u003e\n"],["\u003cp\u003eMethods are available to detach the node, get its parent element, and retrieve its text value.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows manipulation of the \u003ccode\u003eDocumentType\u003c/code\u003e declaration within an XML document using Google Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the detailed documentation and method table for comprehensive information and examples.\u003c/p\u003e\n"]]],["The `DocType` node represents an XML Document Type. Key actions include detaching the node from its parent, retrieving the root element name, and accessing internal/external subset data via `getInternalSubset()`, `getPublicId()`, and `getSystemId()`. `getValue()` retrieves text from child nodes. Modification methods include setting the root element name, internal subset data, public ID, and system ID using `setElementName()`, `setInternalSubset()`, `setPublicId()`, and `setSystemId()`, respectively. There is also `getParentElement()` to get the parent Element.\n"],null,["# Class DocType\n\nDocType\n\nA representation of an XML `Document``Type` node. \n\n### Methods\n\n| Method | Return type | Brief description |\n|-------------------------------------------------------|-------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|\n| [detach()](#detach()) | [Content](/apps-script/reference/xml-service/content) | Detaches the node from its parent [Element](/apps-script/reference/xml-service/element) node. |\n| [getElementName()](#getElementName()) | `String` | Gets the name of the root [Element](/apps-script/reference/xml-service/element) node specified in the `Doc``Type` declaration. |\n| [getInternalSubset()](#getInternalSubset()) | `String` | Gets the internal subset data for the `Document``Type` node. |\n| [getParentElement()](#getParentElement()) | [Element](/apps-script/reference/xml-service/element) | Gets the node's parent [Element](/apps-script/reference/xml-service/element) node. |\n| [getPublicId()](#getPublicId()) | `String` | Gets the public ID of the external subset data for the `Document``Type` node. |\n| [getSystemId()](#getSystemId()) | `String` | Gets the system ID of the external subset data for the `Document``Type` node. |\n| [getValue()](#getValue()) | `String` | Gets the text value of all nodes that are direct or indirect children of the node, in the order they appear in the document. |\n| [setElementName(name)](#setElementName(String)) | [DocType](#) | Sets the name of the root [Element](/apps-script/reference/xml-service/element) node to specify in the `Doc``Type` declaration. |\n| [setInternalSubset(data)](#setInternalSubset(String)) | [DocType](#) | Sets the internal subset data for the `Document``Type` node. |\n| [setPublicId(id)](#setPublicId(String)) | [DocType](#) | Sets the public ID of the external subset data for the `Document``Type` node. |\n| [setSystemId(id)](#setSystemId(String)) | [DocType](#) | Sets the system ID of the external subset data for the `Document``Type` node. |\n\nDetailed documentation\n----------------------\n\n### `detach()`\n\nDetaches the node from its parent [Element](/apps-script/reference/xml-service/element) node. If the node does not have a parent,\nthis method has no effect.\n\n#### Return\n\n\n[Content](/apps-script/reference/xml-service/content) --- the detached node\n\n*** ** * ** ***\n\n### `get``Element``Name()`\n\nGets the name of the root [Element](/apps-script/reference/xml-service/element) node specified in the `Doc``Type` declaration.\n\n#### Return\n\n\n`String` --- the name of the root `Element` node specified in the `Doc``Type` declaration\n\n*** ** * ** ***\n\n### `get``Internal``Subset()`\n\nGets the internal subset data for the `Document``Type` node.\n\n#### Return\n\n\n`String` --- the internal subset data\n\n*** ** * ** ***\n\n### `get``Parent``Element()`\n\nGets the node's parent [Element](/apps-script/reference/xml-service/element) node. If the node does not have a parent, this method\nreturns `null`.\n\n#### Return\n\n\n[Element](/apps-script/reference/xml-service/element) --- the parent `Element` node\n\n*** ** * ** ***\n\n### `get``Public``Id()`\n\nGets the public ID of the external subset data for the `Document``Type` node.\n\n#### Return\n\n\n`String` --- the public ID of the external subset data\n\n*** ** * ** ***\n\n### `get``System``Id()`\n\nGets the system ID of the external subset data for the `Document``Type` node.\n\n#### Return\n\n\n`String` --- the system ID of the external subset data\n\n*** ** * ** ***\n\n### `get``Value()`\n\nGets the text value of all nodes that are direct or indirect children of the node, in the order\nthey appear in the document.\n\n#### Return\n\n\n`String` --- the text value of all nodes that are direct or indirect children of the node\n\n*** ** * ** ***\n\n### `set``Element``Name(name)`\n\nSets the name of the root [Element](/apps-script/reference/xml-service/element) node to specify in the `Doc``Type`\ndeclaration.\n\n#### Parameters\n\n| Name | Type | Description |\n|--------|----------|-------------------------------------------------------------------------------|\n| `name` | `String` | the name of the root `Element` node to specify in the `Doc``Type` declaration |\n\n#### Return\n\n\n[DocType](#) --- the `Document``Type` node, for chaining\n\n*** ** * ** ***\n\n### `set``Internal``Subset(data)`\n\nSets the internal subset data for the `Document``Type` node.\n\n#### Parameters\n\n| Name | Type | Description |\n|--------|----------|---------------------------------|\n| `data` | `String` | the internal subset data to set |\n\n#### Return\n\n\n[DocType](#) --- the `Document``Type` node, for chaining\n\n*** ** * ** ***\n\n### `set``Public``Id(id)`\n\nSets the public ID of the external subset data for the `Document``Type` node.\n\n#### Parameters\n\n| Name | Type | Description |\n|------|----------|--------------------------------------------------|\n| `id` | `String` | the public ID of the external subset data to set |\n\n#### Return\n\n\n[DocType](#) --- the `Document``Type` node, for chaining\n\n*** ** * ** ***\n\n### `set``System``Id(id)`\n\nSets the system ID of the external subset data for the `Document``Type` node.\n\n#### Parameters\n\n| Name | Type | Description |\n|------|----------|--------------------------------------------------|\n| `id` | `String` | the system ID of the external subset data to set |\n\n#### Return\n\n\n[DocType](#) --- the `Document``Type` node, for chaining"]]