XmlNodelist methods syntax: Difference between revisions
Jump to navigation
Jump to search
m (Automatically generated page update) |
(Automatically generated page update) |
||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
<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">%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">%nod</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">%nod</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">%nodl</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(XmlNodelist)</span><span class="squareb">]</span><span class="literal"> | <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="squareb">[</span><span class="literal">%(XmlNodelist):</span><span class="squareb">]</span><span class="literal">[[New (XmlNodelist constructor)|New]]</span><span class="literal">(</span> <span class="term" title="XmlDoc">doc</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">nr</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</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">nr</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span> | ||
Throws [[XPathError class|XPathError]]</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> | <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> |
Latest revision as of 16:53, 15 November 2013
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
%diffNodl = nodl:Difference( removeNodl)
%nod = nodl:Item( number)
%nodl = [%(XmlNodelist):]New( doc)
%unionNodl = nodl:UnionSelected( nr, [xpath]) Throws XPathError
%doc = nodl:XmlDoc