Copy (XmlDoc function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 19: Line 19:
{{Template:XmlDoc:Copy syntax}}
{{Template:XmlDoc:Copy syntax}}
===Syntax terms===
===Syntax terms===
<dl>
<table class="syntaxTable">
<dt>%cop
<tr><th>%cop</th>
<dd>An XmlDoc object variable to contain the copy of ''doc''.
<td>An XmlDoc object variable to contain the copy of ''doc''. ''%cop'' does '''not''' have to be empty ([[??]] refid=dstates.). </td></tr>
''%cop'' does '''not''' have to be empty ([[??]] refid=dstates.).
<tr><th>doc</th>
<dt>doc
<td>An XmlDoc object expression.</td></tr>
<dd>An XmlDoc object expression.
</table>
 
</dl>
==Usage notes==
==Usage notes==
<ul>
<ul>

Revision as of 17:50, 22 January 2011

Copy this XmlDoc (XmlDoc class)

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

%outDoc = 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.