XmlNode methods syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
(Automatically generated page update)
Line 10: Line 10:
<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">%outNod</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">nod</span><span class="literal">:[[AddText (XmlNode function)|AddText]]</span><span class="literal">(</span> <span class="term" title="Unicode">value</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="squareb">[</span><span class="term">%outNod</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">nod</span><span class="literal">:[[AddText (XmlNode function)|AddText]]</span><span class="literal">(</span> <span class="term" title="Unicode">value</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">:[[AppendValue (XmlNode subroutine)|AppendValue]]</span><span class="literal">(</span> <span class="term" title="Unicode">appendedValue</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">:[[AppendValue (XmlNode subroutine)|AppendValue]]</span><span class="literal">(</span> <span class="term" title="Unicode">appendedValue</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">nr</span><span class="literal">:[[Audit (XmlDoc/XmlNode subroutine)|Audit]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">options</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">nr</span><span class="literal">:[[Audit (XmlDoc/XmlNode subroutine)|Audit]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">options</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">%outNod</span><span class="literal"> =</span> <span class="term">nod</span><span class="literal">:[[DeepCopy (XmlNode function)|DeepCopy]]</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">%outNod</span><span class="literal"> =</span> <span class="term">nod</span><span class="literal">:[[DeepCopy (XmlNode function)|DeepCopy]]</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">:[[DeepDiscard (XmlNode subroutine)|DeepDiscard]]</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">:[[DeepDiscard (XmlNode subroutine)|DeepDiscard]]</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">%unicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[DefaultURI (XmlDoc/XmlNode function)|DefaultURI]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</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">%unicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[DefaultURI (XmlDoc/XmlNode function)|DefaultURI]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span>
<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">nr</span><span class="literal">:[[DeleteSubtree (XmlDoc/XmlNode subroutine)|DeleteSubtree]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</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">%boolean</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[Exists (XmlDoc/XmlNode function)|Exists]]</span><span class="literal">(</span> <span class="term" title="Unicode">xpath</span><span class="literal">)</span></p>
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">nr</span><span class="literal">:[[DeleteSubtree (XmlDoc/XmlNode subroutine)|DeleteSubtree]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">%boolean</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[Exists (XmlDoc/XmlNode function)|Exists]]</span><span class="literal">(</span> <span class="term" title="Unicode">xpath</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="squareb">[</span><span class="term">%outNod</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">nod</span><span class="literal">:[[InsertCommentBefore (XmlNode function)|InsertCommentBefore]]</span><span class="literal">(</span> <span class="term" title="Unicode">value</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="squareb">[</span><span class="term">%outNod</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">nod</span><span class="literal">:[[InsertCommentBefore (XmlNode function)|InsertCommentBefore]]</span><span class="literal">(</span> <span class="term" title="Unicode">value</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="squareb">[</span><span class="term">%outNod</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">nod</span><span class="literal">:[[InsertElementBefore (XmlNode function)|InsertElementBefore]]</span><span class="literal">(</span> <span class="term" title="Unicode">name</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Unicode">value</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Unicode">uri</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="squareb">[</span><span class="term">%outNod</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">nod</span><span class="literal">:[[InsertElementBefore (XmlNode function)|InsertElementBefore]]</span><span class="literal">(</span> <span class="term" title="Unicode">name</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Unicode">value</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Unicode">uri</span><span class="squareb">]</span><span class="literal">)</span></p>
Line 21: Line 29:
<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">%outNod</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">nod</span><span class="literal">:[[InsertSubtreeBefore (XmlNode function)|InsertSubtreeBefore]]</span><span class="literal">(</span> <span class="term" title="XmlNode">sourceSubtreeNode</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Unicode">DefaultURI=</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="squareb">[</span><span class="term">%outNod</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">nod</span><span class="literal">:[[InsertSubtreeBefore (XmlNode function)|InsertSubtreeBefore]]</span><span class="literal">(</span> <span class="term" title="XmlNode">sourceSubtreeNode</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Unicode">DefaultURI=</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="squareb">[</span><span class="term">%outNod</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">nod</span><span class="literal">:[[InsertTextBefore (XmlNode function)|InsertTextBefore]]</span><span class="literal">(</span> <span class="term" title="Unicode">value</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="squareb">[</span><span class="term">%outNod</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">nod</span><span class="literal">:[[InsertTextBefore (XmlNode function)|InsertTextBefore]]</span><span class="literal">(</span> <span class="term" title="Unicode">value</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">nr</span><span class="literal">:[[Length (XmlDoc/XmlNode function)|Length]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</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">%number</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[Length (XmlDoc/XmlNode function)|Length]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">nr</span><span class="literal">:[[LoadFromRecord (XmlDoc/XmlNode subroutine)|LoadFromRecord]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">AttributeValues=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">AttributeNames=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span>    -
<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">nr</span><span class="literal">:[[LoadFromRecord (XmlDoc/XmlNode subroutine)|LoadFromRecord]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">AttributeValues=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">AttributeNames=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span>    -
                     <span class="squareb">[</span><span class="literal" title="Boolean">NamesToLower=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">AllowUnreversible=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span>    -
                     <span class="squareb">[</span><span class="literal" title="Boolean">NamesToLower=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">AllowUnreversible=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span>    -
                     <span class="squareb">[</span><span class="literal" title="Boolean">CodepageTable=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
                     <span class="squareb">[</span><span class="literal" title="Boolean">CodepageTable=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">Base64Encode=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span>        -
<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">nr</span><span class="literal">:[[LoadFromStringlist (XmlDoc/XmlNode function)|LoadFromStringlist]]</span><span class="literal">(</span> <span class="term" title="Stringlist">sl</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">string</span><span class="squareb">]</span><span class="literal">)</span></p>
                    <span class="squareb">[</span><span class="literal" title="CharacterToUnicodeMap">CharacterMap=</span> <span class="term" title="CharacterToUnicodeMap">characterToUnicodeMap</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span>
<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">%errorPosition</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">nr</span><span class="literal">:[[LoadXml (XmlDoc/XmlNode function)|LoadXml]]</span><span class="literal">(</span> <span class="term" title="String">input</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">options</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">%unicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[LocalName (XmlDoc/XmlNode function)|LocalName]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
Throws [[CharacterTranslationException class|CharacterTranslationException]]</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">nr</span><span class="literal">:[[LoadFromStringlist (XmlDoc/XmlNode function)|LoadFromStringlist]]</span><span class="literal">(</span> <span class="term" title="Stringlist">sl</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">string</span><span class="squareb">]</span><span class="literal">)</span>
 
Throws [[XmlParseError class|XmlParseError]]</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">%errorPosition</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">nr</span><span class="literal">:[[LoadXml (XmlDoc/XmlNode function)|LoadXml]]</span><span class="literal">(</span> <span class="term" title="String">input</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">options</span><span class="squareb">]</span><span class="literal">)</span>
 
Throws [[XmlParseError class|XmlParseError]]</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">%unicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[LocalName (XmlDoc/XmlNode function)|LocalName]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">%outNod</span><span class="literal"> =</span> <span class="term">nod</span><span class="literal">:[[Next (XmlNode function)|Next]]</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">%outNod</span><span class="literal"> =</span> <span class="term">nod</span><span class="literal">:[[Next (XmlNode function)|Next]]</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">%currentBoolean</span><span class="literal"> =</span> <span class="term">nod</span><span class="literal">:[[NoEmptyElement (XmlNode property)|NoEmptyElement]]</span>
<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">%currentBoolean</span><span class="literal"> =</span> <span class="term">nod</span><span class="literal">:[[NoEmptyElement (XmlNode property)|NoEmptyElement]]</span>
<span class="term">nod</span><span class="literal">:[[NoEmptyElement (XmlNode property)|NoEmptyElement]]</span> <span class="literal">= </span><span class="term">newBoolean</span></p>
<span class="term">nod</span><span class="literal">:[[NoEmptyElement (XmlNode property)|NoEmptyElement]]</span> <span class="literal">= </span><span class="term">newBoolean</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">%unicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[Prefix (XmlDoc/XmlNode function)|Prefix]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</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">%unicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[Prefix (XmlDoc/XmlNode function)|Prefix]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span>
<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">%unicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[PrefixURI (XmlDoc/XmlNode function)|PrefixURI]]</span><span class="literal">(</span> <span class="term" title="Unicode">prefix</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>
 
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">%unicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[PrefixURI (XmlDoc/XmlNode function)|PrefixURI]]</span><span class="literal">(</span> <span class="term" title="Unicode">prefix</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">%outNod</span><span class="literal"> =</span> <span class="term">nod</span><span class="literal">:[[Previous (XmlNode function)|Previous]]</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">%outNod</span><span class="literal"> =</span> <span class="term">nod</span><span class="literal">:[[Previous (XmlNode function)|Previous]]</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">nr</span><span class="literal">:[[Print (XmlDoc/XmlNode subroutine)|Print]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">options</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">nr</span><span class="literal">:[[Print (XmlDoc/XmlNode subroutine)|Print]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">options</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span>
<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">%unicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[QName (XmlDoc/XmlNode function)|QName]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</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">%number</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[SelectCount (XmlDoc/XmlNode function)|SelectCount]]</span><span class="literal">(</span> <span class="term" title="Unicode">xpath</span><span class="literal">)</span></p>
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">%nodl</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[SelectNodes (XmlDoc/XmlNode function)|SelectNodes]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</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">%unicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[QName (XmlDoc/XmlNode function)|QName]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span>
<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">nr</span><span class="literal">:[[SelectSingleNode (XmlDoc/XmlNode function)|SelectSingleNode]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</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">%string</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[Serial (XmlDoc/XmlNode function)|Serial]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">options</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">AddTrailingDelimiter=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
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">%string</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[ToXPathString (XmlDoc/XmlNode function)|ToXPathString]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">selectionXpath</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">%number</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[SelectCount (XmlDoc/XmlNode function)|SelectCount]]</span><span class="literal">(</span> <span class="term" title="Unicode">xpath</span><span class="literal">)</span>
<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">%sl</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[ToXPathStringlist (XmlDoc/XmlNode function)|ToXPathStringlist]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">selectionXpath</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">nr</span><span class="literal">:[[Trace (XmlDoc/XmlNode subroutine)|Trace]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">options</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
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">%xmlNodeType</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[Type (XmlDoc/XmlNode function)|Type]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</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">%nodl</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[SelectNodes (XmlDoc/XmlNode function)|SelectNodes]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span>
<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">%unicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[URI (XmlDoc/XmlNode function)|URI]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
 
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">%nod</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[SelectSingleNode (XmlDoc/XmlNode function)|SelectSingleNode]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">%string</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[Serial (XmlDoc/XmlNode function)|Serial]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">options</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">AddTrailingDelimiter=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">%string</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[ToXPathString (XmlDoc/XmlNode function)|ToXPathString]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">selectionXpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">%sl</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[ToXPathStringlist (XmlDoc/XmlNode function)|ToXPathStringlist]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">selectionXpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">nr</span><span class="literal">:[[Trace (XmlDoc/XmlNode subroutine)|Trace]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">options</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">%xmlNodeType</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[Type (XmlDoc/XmlNode function)|Type]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">%unicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[URI (XmlDoc/XmlNode function)|URI]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">%currentUnicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[Value (XmlDoc/XmlNode property)|Value]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span>
<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">%currentUnicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[Value (XmlDoc/XmlNode property)|Value]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span>
<span class="term">nr</span><span class="literal">:[[Value (XmlDoc/XmlNode property)|Value]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span> <span class="literal">= </span><span class="term">newUnicode</span></p>
<span class="term">nr</span><span class="literal">:[[Value (XmlDoc/XmlNode property)|Value]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span> <span class="literal">= </span><span class="term">newUnicode</span>
<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">%unicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[ValueDefault (XmlDoc/XmlNode function)|ValueDefault]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Unicode">value</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">%sl</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[XPathNodeID (XmlDoc/XmlNode function)|XPathNodeID]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">selectionXpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
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">%unicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[ValueDefault (XmlDoc/XmlNode function)|ValueDefault]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Unicode">value</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">%sl</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[XPathNodeID (XmlDoc/XmlNode function)|XPathNodeID]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">selectionXpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">nod</span><span class="literal">:[[XmlDoc (XmlNode 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">nod</span><span class="literal">:[[XmlDoc (XmlNode function)|XmlDoc]]</span></p>

Revision as of 15:59, 15 November 2013

The syntax for each of the XmlNode 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 XmlNode methods.

[%outNod =] nod:AddAttribute( name, value, [uri])

[%nod =] nr:AddComment( value)

[%nod =] nr:AddElement( name, [value], [uri])

nod:AddNamespace( prefix, uri)

[%nod =] nr:AddPI( name, value)

[%nod =] nr:AddSubtree( sourceSubtreeNode, [DefaultURI= unicode])

[%outNod =] nod:AddText( value)

nod:AppendValue( appendedValue)

nr:Audit[( [xpath], [options])] Throws XPathError

%outNod = nod:DeepCopy

nod:DeepDiscard

%unicode = nr:DefaultURI[( [xpath])] Throws XPathError

nr:DeleteSubtree[( [xpath])] Throws XPathError

%boolean = nr:Exists( xpath) Throws XPathError

[%outNod =] nod:InsertCommentBefore( value)

[%outNod =] nod:InsertElementBefore( name, [value], [uri])

[%outNod =] nod:InsertPIBefore( name, value)

[%outNod =] nod:InsertSubtreeBefore( sourceSubtreeNode, [DefaultURI= unicode])

[%outNod =] nod:InsertTextBefore( value)

%number = nr:Length[( [xpath])] Throws XPathError

nr:LoadFromRecord[( [AttributeValues= boolean], [AttributeNames= boolean], - [NamesToLower= boolean], [AllowUnreversible= boolean], - [CodepageTable= boolean], [Base64Encode= boolean], - [CharacterMap= characterToUnicodeMap])] Throws CharacterTranslationException

[%number =] nr:LoadFromStringlist( sl, [string]) Throws XmlParseError

[%errorPosition =] nr:LoadXml( input, [options]) Throws XmlParseError

%unicode = nr:LocalName[( [xpath])] Throws XPathError

%outNod = nod:Next

%currentBoolean = nod:NoEmptyElement nod:NoEmptyElement = newBoolean

%unicode = nr:Prefix[( [xpath])] Throws XPathError

%unicode = nr:PrefixURI( prefix, [xpath]) Throws XPathError

%outNod = nod:Previous

nr:Print[( [xpath], [options])] Throws XPathError

%unicode = nr:QName[( [xpath])] Throws XPathError

%number = nr:SelectCount( xpath) Throws XPathError

%nodl = nr:SelectNodes[( [xpath])] Throws XPathError

%nod = nr:SelectSingleNode[( [xpath])] Throws XPathError

%string = nr:Serial[( [xpath], [options], [AddTrailingDelimiter= boolean])] Throws XPathError

%string = nr:ToXPathString[( [selectionXpath])] Throws XPathError

%sl = nr:ToXPathStringlist[( [selectionXpath])] Throws XPathError

nr:Trace[( [xpath], [options])] Throws XPathError

%xmlNodeType = nr:Type[( [xpath])] Throws XPathError

%unicode = nr:URI[( [xpath])] Throws XPathError

%currentUnicode = nr:Value[( [xpath])] nr:Value[( [xpath])] = newUnicode Throws XPathError

%unicode = nr:ValueDefault[( [xpath], [value])] Throws XPathError

%sl = nr:XPathNodeID[( [selectionXpath])] Throws XPathError

%doc = nod:XmlDoc