The Document object associated to this node. This is also the Document object used to create new nodes. When this node is a Document or a DocumentType
which is not yet used in any Document, returns null.
The node can be passed as argument or as attribute.
1 dom.node.getOwnerDocument
<dom.node.getOwnerDocument name='name'>
<node /> !
</dom.node.getOwnerDocument>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | String |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Enode | Node |
Returns | |
---|---|
Type | Description |
Document | Returns the document object associated to the node. |
Example
Get the document object associated to the node.
Copy
<xsql-script name='dom_node_getOwnerDocument'> <body> <set name='root'> <dom.parse><file name='data.xml' type='absolute' /></dom.parse> </set> <!-- Return: <?xml version="1.0" ?> <document> <element>hello</element> <element>world</element> </document> --> <println> <dom.node.getOwnerDocument> <root/> </dom.node.getOwnerDocument> </println> </body> </xsql-script>