|
You should avoid using the Document.documentURI attribute to give the cloned document a URI identical to the source document because any subsequent changes made to either document will be reflected in the other document.
|
cloneDocument( [flags] )
|
|
Parameters
|
intflags
[optional] A bitmask constructed by ORing some combination of the following constants: CLONE_EMPTY, CLONE_RESOLVE_CHANGE_TRACKING, CLONE_NO_ENT_DECLS, CLONE_XML, CLONE_CARET.
See the descriptions of these constants for more information.
|
Returns
|
Document. Cloned document.
|
Throws
|
CMSException
Raised for any error.
|