New (XmlNodelist constructor): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
(No difference)
|
Revision as of 21:20, 1 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 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).