New (XmlDoc constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (edits, tags and links)
mNo edit summary
Line 1: Line 1:
{{Template:XmlDoc:New subtitle}}
{{Template:XmlDoc:New subtitle}}
<var>New</var> creates an <var>XmlDoc</var> object instance and takes no arguments.


==Syntax==
==Syntax==
Line 8: Line 7:
<tr><th>%doc</th>
<tr><th>%doc</th>
<td>A declared <var>XmlDoc</var> object variable to contain the new <var>XmlDoc</var> object instance.</td></tr>
<td>A declared <var>XmlDoc</var> object variable to contain the new <var>XmlDoc</var> object instance.</td></tr>
<tr><th><var>%(XmlDoc)</var></th>
<td>The class name in parentheses denotes a shared method. </td></tr>
</table>
</table>


==Usage notes==
==Usage notes==
<ul>
<ul>
<li><var>New</var> 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):
<li>You can invoke <var>New</var> with an explicit class name (as in the syntax box above), or you can alternatively invoke it with no object (as shown below) or with an object variable (even if that object is null):
<p class="code">%xmldoc = %(XmlDoc):new
<p class="code">%xmldoc = new
</p>
 
<li>An <var>XmlDoc</var> can only be instantiated by either the <var>New</var> method or by making a copy of an existing <var>XmlDoc</var> via the <var>[[Copy (XmlDoc function)|Copy]]</var> or <var>[[DeepCopy (XmlDoc/XmlNode function)|DeepCopy]]</var> methods.
%xmldoc = %doc:new</p>
<li>An <var>XmlDoc</var> can only be instantiated by either the <var>New</var> method or by making a copy of an existing <var>XmlDoc</var> 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 21:53, 1 June 2011

Create a new XmlDoc object (XmlDoc class)


Syntax

%doc = [%(XmlDoc):]New

Syntax terms

%doc A declared XmlDoc object variable to contain the new XmlDoc object instance.
%(XmlDoc) The class name in parentheses denotes a shared method.

Usage notes

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

    %xmldoc = new %xmldoc = %doc: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