A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/apps-script/reference/xml-service/doc-type below:

Class DocType | Apps Script

Class DocType

Stay organized with collections Save and categorize content based on your preferences.

DocType

A representation of an XML DocumentType node.

Detailed documentation detach()

Detaches the node from its parent Element node. If the node does not have a parent, this method has no effect.

Return

Content — the detached node

getElementName()

Gets the name of the root Element node specified in the DocType declaration.

Return

String — the name of the root Element node specified in the DocType declaration

getInternalSubset()

Gets the internal subset data for the DocumentType node.

Return

String — the internal subset data

getParentElement()

Gets the node's parent Element node. If the node does not have a parent, this method returns null.

Return

Element — the parent Element node

getPublicId()

Gets the public ID of the external subset data for the DocumentType node.

Return

String — the public ID of the external subset data

getSystemId()

Gets the system ID of the external subset data for the DocumentType node.

Return

String — the system ID of the external subset data

getValue()

Gets the text value of all nodes that are direct or indirect children of the node, in the order they appear in the document.

Return

String — the text value of all nodes that are direct or indirect children of the node

setElementName(name)

Sets the name of the root Element node to specify in the DocType declaration.

Parameters Name Type Description name String the name of the root Element node to specify in the DocType declaration Return

DocType — the DocumentType node, for chaining

setInternalSubset(data)

Sets the internal subset data for the DocumentType node.

Parameters Name Type Description data String the internal subset data to set Return

DocType — the DocumentType node, for chaining

setPublicId(id)

Sets the public ID of the external subset data for the DocumentType node.

Parameters Name Type Description id String the public ID of the external subset data to set Return

DocType — the DocumentType node, for chaining

setSystemId(id)

Sets the system ID of the external subset data for the DocumentType node.

Parameters Name Type Description id String the system ID of the external subset data to set Return

DocType — the DocumentType node, for chaining

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-12-02 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-02 UTC."],[[["`DocType` represents an XML `DocumentType` node and provides methods to interact with its properties."],["You can access and modify properties like the root element name, internal/external subset data, and public/system IDs."],["Methods are available to detach the node, get its parent element, and retrieve its text value."],["This class allows manipulation of the `DocumentType` declaration within an XML document using Google Apps Script."],["Refer to the detailed documentation and method table for comprehensive information and examples."]]],["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"]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4