Copy (XmlDoc function): Difference between revisions
Jump to navigation
Jump to search
m (AllowNullObject methods) |
m (edits, tags and links) |
||
Line 1: | Line 1: | ||
{{Template:XmlDoc:Copy subtitle}} | {{Template:XmlDoc:Copy subtitle}} | ||
<var>Copy</var> 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. | |||
Since <var>xmlDoc</var> objects are relatively simple, that is, they contain no other objects, they are always both [[Copying objects|"copyable and deep copyable"]]. | |||
==Syntax== | ==Syntax== | ||
{{Template:XmlDoc:Copy syntax}} | {{Template:XmlDoc:Copy syntax}} | ||
Line 17: | Line 16: | ||
==Usage notes== | ==Usage notes== | ||
<ul> | <ul> | ||
<li>The method object (<var class="term">doc</var>) may be | <li>The method object (<var class="term">doc</var>) may be <var>Null</var>. The output of a copy of a <var>Null</var> object is a <var>Null</var> object. | ||
The output of a copy of a | |||
</ul> | </ul> | ||
==See also== | ==See also== | ||
{{Template:XmlDoc:Copy footer}} | {{Template:XmlDoc:Copy footer}} |
Revision as of 11:42, 27 April 2011
Copy this XmlDoc (XmlDoc class)
Copy 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 both "copyable and deep copyable".
Syntax
%outDoc = doc:Copy
Syntax terms
%outDoc | An xmlDoc object variable to contain the copy of doc. |
---|---|
doc | An xmlDoc object expression, which may be Null. |
Usage notes
- The method object (doc) may be Null. The output of a copy of a Null object is a Null object.