New (XmlDoc constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
Line 17: Line 17:


%xmldoc = %doc:new</p>
%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.
<li>An <var>XmlDoc</var> can only be instantiated by 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 19:37, 1 July 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 the New method or by making a copy of an existing XmlDoc via the Copy or DeepCopy method.

See also