A representation of an XML Document
node.
Methods
Method | Return type | Brief description |
---|---|---|
detach() | Content | Detaches the node from its parent Element node. |
get | String | Gets the name of the root Element node specified in the Doc declaration. |
get | String | Gets the internal subset data for the Document node. |
get | Element | Gets the node's parent Element node. |
get | String | Gets the public ID of the external subset data for the Document node. |
get | String | Gets the system ID of the external subset data for the Document node. |
get | 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. |
set | Doc | Sets the name of the root Element node to specify in the Doc
declaration. |
set | Doc | Sets the internal subset data for the Document node. |
set | Doc | Sets the public ID of the external subset data for the Document node. |
set | Doc | Sets the system ID of the external subset data for the Document node. |
Detailed documentation
detach()
getElementName()
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
getInternalSubset()
Gets the internal subset data for the Document
node.
Return
String
— the internal subset data
getParentElement()
getPublicId()
Gets the public ID of the external subset data for the Document
node.
Return
String
— the public ID of the external subset data
getSystemId()
Gets the system ID of the external subset data for the Document
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)
setInternalSubset(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
setPublicId(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
setSystemId(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