Description
Sets the owning PBDOM_DOCUMENT of the current PBDOM_DOCTYPE.
Syntax
pbdom_doctype_name.SetDocument(pbdom_document pbdom_document_ref)
Argument |
Description |
---|---|
pbdom_doctype_name |
The name of a PBDOM_DOCTYPE object |
pbdom_document_ref |
A PBDOM_DOCUMENT object to be set as the owner document of this PBDOM_DOCTYPE object |
Return value
PBDOM_DOCTYPE. The current PBDOM_DOCTYPE modified to be the DOCTYPE of the referenced PBDOM_DOCUMENT.
Throws
EXCEPTION_PBDOM_OBJECT_INVALID_FOR_USE -- if the input PBDOM_DOCUMENT object is invalid for use in any way.
EXCEPTION_PBDOM_OBJECT_ALREADY_HAS_PARENT -- if this current PBDOM_DOCTYPE already has a parent PBDOM_OBJECT. In this case, this PBDOM_DOCTYPE is already the DOCTYPE of some document.
Usage
A DOM DOCTYPE object can have no owner document, or it can have an owner document but no parent node. A DOCTYPE that has an owner document as well as a parent node is the actual DOCTYPE of the owner document.
See also