Copy (XmlDoc function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 2: Line 2:
[[Category:XmlDoc methods|Copy function]]
[[Category:XmlDoc methods|Copy function]]
[[Category:XmlDoc API methods]]
[[Category:XmlDoc API methods]]
<!--DPL?? Category:XmlDoc methods|Copy function: Copy an XmlDoc object-->
<!--DPL?? Category:XmlDoc API methods|Copy (XmlDoc function): Copy an XmlDoc object-->
<!--DPL?? Category:System methods|Copy (XmlDoc function): Copy an XmlDoc object-->
<p>
<p>
Copy is a member of the [[XmlDoc class]].
Copy is a member of the [[XmlDoc class]].
Line 10: Line 7:


This method returns an exact copy of the method XmlDoc object.
This method returns an exact copy of the method XmlDoc object.
It is identical to the XmlDoc DeepCopy
It is identical to the <var>XmlDoc</var> <var>[[DeepCopy (XmlDoc function)|DeepCopy]]</var> method.
method ([[??]] reftxt='DeepCopy' refid=dcopxml.).


Since XmlDoc objects are relatively simple, that is, they contain no
Since XmlDoc objects are relatively simple, that is, they contain no
Line 20: Line 16:
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%cop</th>
<tr><th>%object</th>
<td>An XmlDoc object variable to contain the copy of ''doc''. ''%cop'' does '''not''' have to be empty ([[??]] refid=dstates.). </td></tr>
<td>An <var>XmlDoc</var> object variable to contain the copy of <var class="term">doc</var>.</td></tr>
<tr><th>doc</th>
<tr><th>doc</th>
<td>An XmlDoc object expression.</td></tr>
<td>An <var>XmlDoc</var> object expression.</td></tr>
</table>
</table>
==Usage notes==
==Usage notes==
<ul>
<ul>
<li>The method object (''doc'') may be null.
<li>The method object (<var class="term">doc</var> may be null.
The output of a copy of a null object is a null object.
The output of a copy of a null object is a null object.
</ul>
</ul>

Revision as of 02:15, 23 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.

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

%object An XmlDoc object variable to contain the copy of doc.
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.