Copy (XmlDoc function)

From m204wiki
Revision as of 00:13, 7 December 2010 by 198.242.244.47 (talk) (Created page with "<span style="font-size:120%; color:black"><b>Copy an XmlDoc object</b></span> Copy function Category:XmlDoc API methods [[Category:System methods]...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Copy an XmlDoc object

Copy is a member of the XmlDoc class.

This method returns an exact copy of the method XmlDoc object. It is identical to the XmlDoc DeepCopy method (?? reftxt='DeepCopy' refid=dcopxml.).

Since XmlDoc objects are relatively simple, that is, they contain no other objects, they are always copyable and deep copyable, as described in ??Copying objects.

Syntax

  %cop = doc:Copy

Syntax Terms

%cop
An XmlDoc object variable to contain the copy of doc. %cop does not have to be empty (?? refid=dstates.).
doc
An XmlDoc object expression.

Usage Notes

  • The method object (doc) may be null. The output of a copy of a null object is a null object.