PBDOM_DOCTYPE:
SetDocument method
Description
Sets
the owning PBDOM_DOCUMENT of the current PBDOM_DOCTYPE.
Syntax
1 |
<span>pbdom_doctype_name</span>.SetDocument(pbdom_document <span>pbdom_document_ref</span><span></span>) |
Argument |
Description |
---|---|
pbdom_doctype_name |
The name of a PBDOM_DOCTYPE |
pbdom_document_ref |
A PBDOM_DOCUMENT object to be |
Return Values
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.