DeepCopy (XmlDoc function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (AllowNullObject methods)
 
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Template:XmlDoc:DeepCopy subtitle}}
{{Template:XmlDoc:DeepCopy subtitle}}
<var>DeepCopy</var> method returns an exact copy of the method <var>xmlDoc</var> object.  It is identical to the <var>xmlDoc</var> <var>[[Copy (XmlDoc function)|Copy]]</var> method.


This method returns an exact copy of the method <var>xmlDoc</var> object.
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"]].
It is identical to the <var>xmlDoc</var> <var>[[Copy (XmlDoc function)|Copy]]</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]].
==Syntax==
==Syntax==
{{Template:XmlDoc:DeepCopy syntax}}
{{Template:XmlDoc:DeepCopy syntax}}
Line 17: Line 15:
==Usage notes==
==Usage notes==
<ul>
<ul>
<li>The method object (<var class="term">doc</var>) may be null.
<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 null object is a null object.
</ul>
</ul>
==See also==
==See also==
{{Template:XmlDoc:DeepCopy footer}}
{{Template:XmlDoc:DeepCopy footer}}

Latest revision as of 21:14, 31 May 2011

Deep copy this XmlDoc (XmlDoc class)

DeepCopy method returns an exact copy of the method xmlDoc object. It is identical to the xmlDoc Copy 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:DeepCopy

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.

See also