Copy (XmlDoc function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
[[Category:XmlDoc API methods]]
[[Category:XmlDoc API methods]]


This method returns an exact copy of the method <var>XmlDoc</var> object.
This method returns an exact copy of the method <var>xmlDoc</var> object.
It is identical to the <var>XmlDoc</var> <var>[[DeepCopy (XmlDoc function)|DeepCopy]]</var> method.
It is identical to the <var>xmlDoc</var> <var>[[DeepCopy (XmlDoc function)|DeepCopy]]</var> method.


Since <var>XmlDoc</var> objects are relatively simple, that is, they contain no other objects, they are always [[Copying objects|copyable and deep copyable]].
Since <var>xmlDoc</var> objects are relatively simple, that is, they contain no other objects, they are always [[Copying objects|copyable and deep copyable]].
==Syntax==
==Syntax==
{{Template:XmlDoc:Copy syntax}}
{{Template:XmlDoc:Copy syntax}}
Line 12: Line 12:
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%object</th>
<tr><th>%object</th>
<td>An <var>XmlDoc</var> object variable to contain the copy of <var class="term">doc</var>.</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 <var>XmlDoc</var> object expression.</td></tr>
<td>An <var>xmlDoc</var> object expression.</td></tr>
</table>
</table>
==Usage notes==
==Usage notes==

Revision as of 02:23, 23 January 2011

Copy this XmlDoc (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.

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.