AI-generated Key Takeaways
-
DocType represents an XML DocumentType node.
-
It provides methods to get and set various properties of the DocType, such as the element name, internal and external subset data, and its parent element.
-
The
detach()method removes the DocType node from its parent.
A representation of an XML Document
node.
Methods
| Method | Return type | Brief description |
|---|---|---|
Content
|
Detaches the node from its parent Element
node. |
|
String
|
Gets the name of the root Element
node specified in the Doc
declaration. |
|
String
|
Gets the internal subset data for the Document
node. |
|
Element
|
Gets the node's parent Element
node. |
|
String
|
Gets the public ID of the external subset data for the Document
node. |
|
String
|
Gets the system ID of the external subset data for the Document
node. |
|
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. | |
Doc
|
Sets the name of the root Element
node to specify in the Doc
declaration. |
|
Doc
|
Sets the internal subset data for the Document
node. |
|
Doc
|
Sets the public ID of the external subset data for the Document
node. |
|
Doc
|
Sets the system ID of the external subset data for the Document
node. |
Detailed documentation
detach()
get
Element
Name()
Gets the name of the root Element
node specified in the Doc
declaration.
Return
String
— the name of the root Element
node specified in the Doc
declaration
get
Internal
Subset()
Gets the internal subset data for the Document
node.
Return
String
— the internal subset data
get
Parent
Element()
get
Public
Id()
Gets the public ID of the external subset data for the Document
node.
Return
String
— the public ID of the external subset data
get
System
Id()
Gets the system ID of the external subset data for the Document
node.
Return
String
— the system ID of the external subset data
get
Value()
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
set
Element
Name(name)
set
Internal
Subset(data)
Sets the internal subset data for the Document
node.
Parameters
| Name | Type | Description |
|---|---|---|
data
|
String
|
the internal subset data to set |
Return
Doc
— the Document
node, for chaining
set
Public
Id(id)
Sets the public ID of the external subset data for the Document
node.
Parameters
| Name | Type | Description |
|---|---|---|
id
|
String
|
the public ID of the external subset data to set |
Return
Doc
— the Document
node, for chaining
set
System
Id(id)
Sets the system ID of the external subset data for the Document
node.
Parameters
| Name | Type | Description |
|---|---|---|
id
|
String
|
the system ID of the external subset data to set |
Return
Doc
— the Document
node, for chaining

