New (XmlNodelist constructor): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
mNo edit summary |
||
Line 9: | Line 9: | ||
<td>A declared <var>XmlNodelist</var> object variable to contain the new <var>XmlNodelist</var> object instance.</td></tr> | <td>A declared <var>XmlNodelist</var> object variable to contain the new <var>XmlNodelist</var> object instance.</td></tr> | ||
<tr><th><var>%(XmlNodelist)</var></th> | <tr><th><var>%(XmlNodelist)</var></th> | ||
<td>The class name in parentheses denotes a [[Notation conventions for methods# | <td>The optional class name in parentheses denotes a <var>[[Notation conventions for methods#Constructors|Constructor]]</var>. See [[#Usage notes|"Usage notes"]], below, for more information about invoking an <var>XmlNodelist</var> <var>Constructor</var>.</td></tr> | ||
<tr><th>doc</th> | <tr><th>doc</th> | ||
<td>An <var>XmlDoc</var> object variable which references the <var>XmlDoc</var> with which <var class="term">%nodl</var> is associated.</td></tr> | <td>An <var>XmlDoc</var> object variable which references the <var>XmlDoc</var> with which <var class="term">%nodl</var> is associated.</td></tr> | ||
Line 16: | Line 16: | ||
==Usage notes== | ==Usage notes== | ||
<ul> | <ul> | ||
<li> | <li>As described in [[Object variables#Using New or other Constructors|"Using New or other Constructors"]], <var>New</var> can be invoked with no object, with an explicit class name, or with an object variable in the class, even if that object is <var>Null</var>:<p class="code">%nodl = new(%doc) | ||
<p class="code">% | |||
% | %nodl = %(XmlNodelist):new(%doc) | ||
%nodl = %nodl:new(%doc) | |||
</p> | |||
<li>Besides explicit <var>New</var> statements, <var>XmlNodelist</var>s can be created by other XML methods (for example, see <var>[[SelectNodes (XmlDoc/XmlNode function)|SelectNodes]]</var>, <var>[[UnionSelected_(XmlNodelist_function)|UnionSelected]]</var>, and <var>[[Difference_(XmlNodelist_function)|Difference]]</var>). | <li>Besides explicit <var>New</var> statements, <var>XmlNodelist</var>s can be created by other XML methods (for example, see <var>[[SelectNodes (XmlDoc/XmlNode function)|SelectNodes]]</var>, <var>[[UnionSelected_(XmlNodelist_function)|UnionSelected]]</var>, and <var>[[Difference_(XmlNodelist_function)|Difference]]</var>). | ||
</ul> | </ul> |
Revision as of 20:40, 27 July 2011
Create a new XmlNodelist (XmlNodelist class)
New creates an XmlNodelist object instance, taking one argument: the XmlDoc with which the XmlNodelist is associated.
Syntax
%nodl = [%(XmlNodelist):]New( doc)
Syntax terms
%nodl | A declared XmlNodelist object variable to contain the new XmlNodelist object instance. |
---|---|
%(XmlNodelist) | The optional class name in parentheses denotes a Constructor. See "Usage notes", below, for more information about invoking an XmlNodelist Constructor. |
doc | An XmlDoc object variable which references the XmlDoc with which %nodl is associated. |
Usage notes
- As described in "Using New or other Constructors", New can be invoked with no object, with an explicit class name, or with an object variable in the class, even if that object is Null:
%nodl = new(%doc) %nodl = %(XmlNodelist):new(%doc) %nodl = %nodl:new(%doc)
- Besides explicit New statements, XmlNodelists can be created by other XML methods (for example, see SelectNodes, UnionSelected, and Difference).