New (XmlNodelist constructor)

From m204wiki
Revision as of 12:20, 27 April 2011 by Goff (talk | contribs) (edits, tags and links)
Jump to navigation Jump to search

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.
%doc A XmlDoc object variable which references the XmlDoc with which %nodl is associated.

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

    %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