New (XmlDoc constructor): Difference between revisions
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}} | ||
==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> | <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 = % | <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> | %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.