New (XmlDoc constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Created page with "<span style="font-size:120%; color:black"><b>Create XmlDoc/XmlNodelist object</b></span> New constructor Category:XmlDoc API methods This method c...")
 
m (Created page with "<span style="font-size:120%; color:black"><b>Create XmlDoc/XmlNodelist object</b></span> New constructor Category:XmlDoc API methods This method c...")
Line 1: Line 1:
<span style="font-size:120%; color:black"><b>Create XmlDoc/XmlNodelist object</b></span>
{{Template:XmlDoc:New subtitle}}
[[Category:XmlDoc methods|New constructor]]
[[Category:XmlDoc methods|New constructor]]
[[Category:XmlDoc API methods]]
[[Category:XmlDoc API methods]]
This method creates an XmlDoc object instance and takes no arguments.
This method creates an XmlDoc object instance and takes no arguments.
===Syntax===
==Syntax==
  %xmldoc = New
{{Template:XmlDoc:New syntax}}
====Syntax Terms====
===Syntax terms===
<dl>
<dl>
<dt><i>%xmldoc</i>
<dt><i>%xmldoc</i>
<dd>A declared XmlDoc object variable to contain the new XmlDoc object instance.
<dd>A declared XmlDoc object variable to contain the new XmlDoc object instance.
</dl>
</dl>
===Usage Notes===
==Usage notes==
<ul>
<ul>
<li>New can be invoked with no object (as in the syntax box above),
<li>New can be invoked with no object (as in the syntax box above),

Revision as of 18:23, 22 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

%xmldoc
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.