XmlNodelist methods syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
 
m (Automatically generated page update)
Line 2: Line 2:
     replaced, so any manual edits will be lost. You've been warned. -->
     replaced, so any manual edits will be lost. You've been warned. -->
{{Template:Syntax_list_header|class=XmlNodelist}}
{{Template:Syntax_list_header|class=XmlNodelist}}
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">%number</span><span class="literal">=</span> <span class="term">xmlNodelist</span><span class="literal">:[[Count (XmlNodelist function)|Count]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">%number</span><span class="literal">=</span> <span class="term">nodl</span><span class="literal">:[[Count (XmlNodelist function)|Count]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%number</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">xmlNodelist</span><span class="literal">:[[Debug (XmlNodelist function)|Debug]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">number</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%number</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">nodl</span><span class="literal">:[[Debug (XmlNodelist function)|Debug]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%object</span><span class="literal">=</span> <span class="term">xmlNodelist</span><span class="literal">:[[Difference (XmlNodelist function)|Difference]]</span><span class="literal">(</span> <span class="term">xmlNodelist</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%diffNodl</span><span class="literal">=</span> <span class="term">nodl</span><span class="literal">:[[Difference (XmlNodelist function)|Difference]]</span><span class="literal">(</span> <span class="term" title="XmlNodelist">removeNodl</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%object</span><span class="literal">=</span> <span class="term">xmlNodelist</span><span class="literal">:[[Item (XmlNodelist function)|Item]]</span><span class="literal">(</span> <span class="term">number</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%object</span><span class="literal">=</span> <span class="term">nodl</span><span class="literal">:[[Item (XmlNodelist function)|Item]]</span><span class="literal">(</span> <span class="term" title="Number">number</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%xmlNodelist</span><span class="literal">=</span> <span class="literal">%(XmlNodelist):[[New (XmlNodelist constructor)|New]]</span><span class="literal">(</span> <span class="term">xmlDoc</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%nodl</span><span class="literal">=</span> <span class="literal">%(XmlNodelist):[[New (XmlNodelist constructor)|New]]</span><span class="literal">(</span> <span class="term" title="XmlDoc">xmlDoc</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal">=</span> <span class="term">xmlNodelist</span><span class="literal">:[[NodelistID (XmlNodelist function)|NodelistID]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal">=</span> <span class="term">nodl</span><span class="literal">:[[NodelistID (XmlNodelist function)|NodelistID]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%object</span><span class="literal">=</span> <span class="term">xmlNodelist</span><span class="literal">:[[UnionSelected (XmlNodelist function)|UnionSelected]]</span><span class="literal">(</span> <span class="term">xmlDoc</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">unicode</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%unionNodl</span><span class="literal">=</span> <span class="term">nodl</span><span class="literal">:[[UnionSelected (XmlNodelist function)|UnionSelected]]</span><span class="literal">(</span> <span class="term" title="XmlDoc">xmlDoc/XmlNode</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Unicode">unicode</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%object</span><span class="literal">=</span> <span class="term">xmlNodelist</span><span class="literal">:[[XmlDoc (XmlNodelist function)|XmlDoc]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%doc</span><span class="literal">=</span> <span class="term">nodl</span><span class="literal">:[[XmlDoc (XmlNodelist function)|XmlDoc]]</span></p>

Revision as of 16:34, 23 January 2011

The syntax for each of the XmlNodelist class methods is shown below.

Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of XmlNodelist methods.

%number= nodl:Count

[%number=] nodl:Debug[( [string], [number])]

%diffNodl= nodl:Difference( removeNodl)

%object= nodl:Item( number)

%nodl= %(XmlNodelist):New( xmlDoc)

%number= nodl:NodelistID

%unionNodl= nodl:UnionSelected( xmlDoc/XmlNode, [unicode])

%doc= nodl:XmlDoc