New (XmlDoc constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 16: Line 16:
or alternatively as shown below, with an explicit class name
or alternatively as shown below, with an explicit class name
or with an object variable (even if that object is null):
or with an object variable (even if that object is null):
<pre>
<p class="code">%xmldoc = %(XmlDoc):new
    %xmldoc = %(XmlDoc):new
</p>
</pre>
<li>An XmlDoc can only be instantiated by either the New method or by making a copy of an existing XmlDoc via the <var>[[Copy (XmlDoc function)|Copy]]</var> or <var>[[DeepCopy (XmlDoc/XmlNode function)|DeepCopy]]</var> method.
<li>An XmlDoc can only be instantiated by either the New method or by making a copy of an existing XmlDoc via the <var>[[Copy (XmlDoc function)|Copy]]</var> or <var>[[DeepCopy (XmlDoc/XmlNode function)|DeepCopy]]</var> method.
</ul>
</ul>
==See also==
==See also==
{{Template:XmlDoc:New footer}}
{{Template:XmlDoc:New footer}}

Revision as of 05:44, 25 January 2011

Create a new XmlDoc object (XmlDoc class) This method creates an XmlDoc object instance and takes no arguments.

Syntax

%doc = [%(XmlDoc):]New

Syntax terms

%doc A declared XmlDoc object variable to contain the new XmlDoc object instance.

Usage notes

  • New can be invoked with no object (as in the syntax box above), or alternatively as shown below, with an explicit class name or with an object variable (even if that object is null):

    %xmldoc = %(XmlDoc):new

  • An XmlDoc can only be instantiated by either the New method or by making a copy of an existing XmlDoc via the Copy or DeepCopy method.

See also