New (XmlNodelist constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
<span style="font-size:120%; color:black"><b>Create XmlDoc/XmlNodelist object</b></span>
<span style="font-size:120%; color:black"><b>Create XmlDoc/XmlNodelist object</b></span>
[[Category:XmlDoc methods|New constructor]]
[[Category:XmlNodelist methods|New constructor]]
[[Category:XmlNodelist methods|New constructor]]
[[Category:XmlDoc API methods]]
[[Category:XmlDoc API methods]]
<!--DPL?? Category:XmlDoc methods|New constructor: Create XmlDoc/XmlNodelist object-->
<!--DPL?? Category:XmlNodelist methods|New constructor: Create XmlDoc/XmlNodelist object-->
<!--DPL?? Category:XmlDoc API methods|New (XmlDoc/XmlNodelist constructor): Create XmlDoc/XmlNodelist object-->
<!--DPL?? Category:System methods|New (XmlDoc/XmlNodelist constructor): Create XmlDoc/XmlNodelist object-->
<p>
<p>
New is a member of the [[XmlDoc class|XmlDoc]] and [[XmlNodelist class|XmlNodelist]] classes.
This method creates an XmlNodelist object instance and takes one argument: the XmlDoc with which the XmlNodelist is associated.
</p>
 
This method creates an XmlDoc or XmlNodelist object instance.
If used to create an XmlDoc, it takes no arguments.
If used to create an XmlNodelist, it takes one argument:
the XmlDoc with which the XmlNodelist is associated.
===Syntax===
===Syntax===
   %xmldoc = New
   %xmldoc = New

Revision as of 18:39, 22 January 2011

Create XmlDoc/XmlNodelist object

This method creates an XmlNodelist object instance and takes one argument: the XmlDoc with which the XmlNodelist is associated.

Syntax

  %xmldoc = New
  %xmlnlis = New(%doc)

Syntax Terms

%xmldoc
A declared XmlDoc object variable to contain the new XmlDoc object instance.
%xmlnlis
A declared XmlNodelist object variable to contain the new XmlNodelist object instance.
%doc
A XmlDoc object variable which references the XmlDoc with which %xmlnlis 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):
        %xmldoc = %(XmlDoc):new
    
        %xmlnlis = %xmlnlis:new(%doc)
    
  • Besides explicit New statements, XmlNodelists can be created by other XML methods (for example, see SelectNodes, ?? reftxt=UnionSelected refid=unionsl., and ?? reftxt=Difference refid=diff.). An XmlDoc can only be instantiated by the New method, although an XmlDoc can be returned or duplicated by a method (see ?? reftxt=XmlDoc refid=xdocfn. and ?? reftxt=Copy refid=copydoc.).