New (XmlNodelist constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (edits, tags and links)
mNo edit summary
Line 8: Line 8:
<tr><th>%nodl</th>
<tr><th>%nodl</th>
<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>%doc</th>
<tr><th><var>%(XmlNodelist)</var></th>
<td>A <var>XmlDoc</var> object variable which references the <var>XmlDoc</var> with which <var class="term">%nodl</var> is associated.</td></tr>
<td>The class name in parentheses denotes a shared method. </td></tr>
<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>
</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">%xmlnlis = %xmlnlis:new(%doc)
<p class="code">%xmlnlis = new(%doc)
</p>
 
<li>Besides explicit <var>New</var> statements, <var>XmlNodelist</var>s can be created by other XML methods (for example, see [[SelectNodes (XmlDoc/XmlNode function)|SelectNodes]], [[UnionSelected_(XmlNodelist_function)|UnionSelected]], and [[Difference_(XmlNodelist_function)|Difference]]).
%xmlnlis = %xmlnlis: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>).
</ul>
</ul>


==See also==
==See also==
{{Template:XmlNodelist:New footer}}
{{Template:XmlNodelist:New footer}}

Revision as of 22:04, 1 June 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 class name in parentheses denotes a shared method.
doc An XmlDoc object variable which references the XmlDoc with which %nodl is associated.

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):

    %xmlnlis = new(%doc) %xmlnlis = %xmlnlis:new(%doc)

  • Besides explicit New statements, XmlNodelists can be created by other XML methods (for example, see SelectNodes, UnionSelected, and Difference).

See also