New (XmlNodelist constructor)
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.
%nodl = [%(XmlNodelist):]New( doc)
|%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.|
- 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).