XmlNode methods syntax: Difference between revisions
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 3: | Line 3: | ||
{{Template:Syntax_list_header|class=XmlNode}} | {{Template:Syntax_list_header|class=XmlNode}} | ||
<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="squareb">[</span><span class="term">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">xmlNode</span><span class="literal">:[[AddAttribute (XmlNode function)|AddAttribute]]</span><span class="literal">(</span> <span class="term">name</span><span class="comma">,</span> <span class="term">value</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">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:1px solid;"><span class="squareb">[</span><span class="term">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">xmlNode</span><span class="literal">:[[AddAttribute (XmlNode function)|AddAttribute]]</span><span class="literal">(</span> <span class="term">name</span><span class="comma">,</span> <span class="term">value</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term"> | <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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">xmlDoc/XmlNode</span><span class="literal">:[[AddComment (XmlDoc/XmlNode function)|AddComment]]</span><span class="literal">(</span> <span class="term">comment</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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term"> | <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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">xmlDoc/XmlNode</span><span class="literal">:[[AddElement (XmlDoc/XmlNode function)|AddElement]]</span><span class="literal">(</span> <span class="term">name</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">value</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">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="term">xmlNode</span><span class="literal">:[[AddNamespace (XmlNode subroutine)|AddNamespace]]</span><span class="literal">(</span> <span class="term">prefix</span><span class="comma">,</span> <span class="term">uri</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">xmlNode</span><span class="literal">:[[AddNamespace (XmlNode subroutine)|AddNamespace]]</span><span class="literal">(</span> <span class="term">prefix</span><span class="comma">,</span> <span class="term">uri</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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term"> | <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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">xmlDoc/XmlNode</span><span class="literal">:[[AddPI (XmlDoc/XmlNode function)|AddPI]]</span><span class="literal">(</span> <span class="term">name</span><span class="comma">,</span> <span class="term">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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term"> | <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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">xmlDoc/XmlNode</span><span class="literal">:[[AddSubtree (XmlDoc/XmlNode function)|AddSubtree]]</span><span class="literal">(</span> <span class="term">xmlNode</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal">DefaultURI=</span> <span class="term">defaultURI</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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">xmlNode</span><span class="literal">:[[AddText (XmlNode function)|AddText]]</span><span class="literal">(</span> <span class="term">text</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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">xmlNode</span><span class="literal">:[[AddText (XmlNode function)|AddText]]</span><span class="literal">(</span> <span class="term">text</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">xmlNode</span><span class="literal">:[[AppendValue (XmlNode subroutine)|AppendValue]]</span><span class="literal">(</span> <span class="term">text</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">xmlNode</span><span class="literal">:[[AppendValue (XmlNode subroutine)|AppendValue]]</span><span class="literal">(</span> <span class="term">text</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"> | <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">xmlDoc/XmlNode</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">xpath</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">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">%object</span><span class="literal">=</span> <span class="term">xmlNode</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">%object</span><span class="literal">=</span> <span class="term">xmlNode</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">%unicode</span><span class="literal">=</span> <span class="term"> | <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">xmlDoc/XmlNode</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">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"> | <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">xmlDoc/XmlNode</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">unicode</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"> | <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">xmlDoc/XmlNode</span><span class="literal">:[[Exists (XmlDoc/XmlNode function)|Exists]]</span><span class="literal">(</span> <span class="term">unicode</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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">xmlNode</span><span class="literal">:[[InsertCommentBefore (XmlNode function)|InsertCommentBefore]]</span><span class="literal">(</span> <span class="term">comment</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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">xmlNode</span><span class="literal">:[[InsertCommentBefore (XmlNode function)|InsertCommentBefore]]</span><span class="literal">(</span> <span class="term">comment</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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">xmlNode</span><span class="literal">:[[InsertElementBefore (XmlNode function)|InsertElementBefore]]</span><span class="literal">(</span> <span class="term">name</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">value</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">xmlNode</span><span class="literal">:[[InsertElementBefore (XmlNode function)|InsertElementBefore]]</span><span class="literal">(</span> <span class="term">name</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">value</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">uri</span><span class="squareb">]</span><span class="literal">)</span></p> | ||
Line 20: | Line 20: | ||
<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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">xmlNode</span><span class="literal">:[[InsertSubtreeBefore (XmlNode function)|InsertSubtreeBefore]]</span><span class="literal">(</span> <span class="term">xmlNode</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal">DefaultURI=</span> <span class="term">defaultURI</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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">xmlNode</span><span class="literal">:[[InsertSubtreeBefore (XmlNode function)|InsertSubtreeBefore]]</span><span class="literal">(</span> <span class="term">xmlNode</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal">DefaultURI=</span> <span class="term">defaultURI</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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">xmlNode</span><span class="literal">:[[InsertTextBefore (XmlNode function)|InsertTextBefore]]</span><span class="literal">(</span> <span class="term">text</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">%object</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">xmlNode</span><span class="literal">:[[InsertTextBefore (XmlNode function)|InsertTextBefore]]</span><span class="literal">(</span> <span class="term">text</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"> | <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">xmlDoc/XmlNode</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">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"> | <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">xmlDoc/XmlNode</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">AttributeValues=</span> <span class="term">attributeValues</span><span class="squareb">]</span><span class="comma">,</span> - | ||
<span class="squareb">[</span><span class="literal">AttributeNames=</span> <span class="term">attributeNames</span><span class="squareb">]</span><span class="comma">,</span> - | |||
<span class="squareb">[</span><span class="literal">NamesToLower=</span> <span class="term">namesToLower</span><span class="squareb">]</span><span class="comma">,</span> - | |||
<span class="squareb">[</span><span class="literal">AllowUnreversible=</span> <span class="term">allowUnreversible</span><span class="squareb">]</span><span class="comma">,</span> - | |||
<span class="squareb">[</span><span class="literal">CodepageTable=</span> <span class="term">codepageTable</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"> | <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">xmlDoc/XmlNode</span><span class="literal">:[[LoadFromStringlist (XmlDoc/XmlNode function)|LoadFromStringlist]]</span><span class="literal">(</span> <span class="term">stringlist</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">string</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">%number</span><span class="literal">=</span><span class="squareb">]</span> <span class="term"> | <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">xmlDoc/XmlNode</span><span class="literal">:[[LoadXml (XmlDoc/XmlNode function)|LoadXml]]</span><span class="literal">(</span> <span class="term">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">string</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"> | <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">xmlDoc/XmlNode</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">name</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">xmlNode</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">%object</span><span class="literal">=</span> <span class="term">xmlNode</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">%boolean</span><span class="literal">=</span> <span class="term">xmlNode</span><span class="literal">:[[NoEmptyElement (XmlNode property)|NoEmptyElement]]</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">xmlNode</span><span class="literal">:[[NoEmptyElement (XmlNode property)|NoEmptyElement]]</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"> | <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">xmlDoc/XmlNode</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">prefix</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"> | <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">xmlDoc/XmlNode</span><span class="literal">:[[PrefixURI (XmlDoc/XmlNode function)|PrefixURI]]</span><span class="literal">(</span> <span class="term">prefix</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">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">%object</span><span class="literal">=</span> <span class="term">xmlNode</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">%object</span><span class="literal">=</span> <span class="term">xmlNode</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"> | <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">xmlDoc/XmlNode</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">xpath</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">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">%unicode</span><span class="literal">=</span> <span class="term"> | <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">xmlDoc/XmlNode</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">qname</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"> | <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">xmlDoc/XmlNode</span><span class="literal">:[[SelectCount (XmlDoc/XmlNode function)|SelectCount]]</span><span class="literal">(</span> <span class="term">unicode</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"> | <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">xmlDoc/XmlNode</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">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">%object</span><span class="literal">=</span> <span class="term"> | <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">xmlDoc/XmlNode</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">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"> | <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">xmlDoc/XmlNode</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">xpath</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">options</span><span class="squareb">]</span><span class="comma">,</span> - | ||
<span class="squareb">[</span><span class="literal">AddTrailingDelimiter=</span> <span class="term">addTrailingDelimiter</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"> | <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">xmlDoc/XmlNode</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">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">%object</span><span class="literal">=</span> <span class="term"> | <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">xmlDoc/XmlNode</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">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"> | <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">xmlDoc/XmlNode</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">xpath</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">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">%xmlNodeType</span><span class="literal">=</span> <span class="term"> | <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">xmlDoc/XmlNode</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">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"> | <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">xmlDoc/XmlNode</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">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="squareb">[</span><span class="term">%number</span><span class="literal">=</span><span class="squareb">]</span> <span class="term"> | <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">xmlDoc/XmlNode</span><span class="literal">:[[Validate (XmlDoc/XmlNode function)|Validate]]</span><span class="literal">(</span> <span class="term">schema</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">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"> | <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">xmlDoc/XmlNode</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">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"> | <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">xmlDoc/XmlNode</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">xpath</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term">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">%object</span><span class="literal">=</span> <span class="term"> | <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">xmlDoc/XmlNode</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">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">%object</span><span class="literal">=</span> <span class="term">xmlNode</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">%object</span><span class="literal">=</span> <span class="term">xmlNode</span><span class="literal">:[[XmlDoc (XmlNode function)|XmlDoc]]</span></p> |
Revision as of 17:08, 22 January 2011
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.
[%object=] xmlNode:AddAttribute( name, value, [uri])
[%object=] xmlDoc/XmlNode:AddComment( comment)
[%object=] xmlDoc/XmlNode:AddElement( name, [value], [uri])
xmlNode:AddNamespace( prefix, uri)
[%object=] xmlDoc/XmlNode:AddPI( name, value)
[%object=] xmlDoc/XmlNode:AddSubtree( xmlNode, [DefaultURI= defaultURI])
[%object=] xmlNode:AddText( text)
xmlNode:AppendValue( text)
xmlDoc/XmlNode:Audit[( [xpath], [options])]
%object= xmlNode:DeepCopy
%unicode= xmlDoc/XmlNode:DefaultURI[( [xpath])]
xmlDoc/XmlNode:DeleteSubtree[( [unicode])]
%boolean= xmlDoc/XmlNode:Exists( unicode)
[%object=] xmlNode:InsertCommentBefore( comment)
[%object=] xmlNode:InsertElementBefore( name, [value], [uri])
[%object=] xmlNode:InsertPIBefore( name, value)
[%object=] xmlNode:InsertSubtreeBefore( xmlNode, [DefaultURI= defaultURI])
[%object=] xmlNode:InsertTextBefore( text)
%number= xmlDoc/XmlNode:Length[( [xpath])]
xmlDoc/XmlNode:LoadFromRecord[( [AttributeValues= attributeValues], - [AttributeNames= attributeNames], - [NamesToLower= namesToLower], - [AllowUnreversible= allowUnreversible], - [CodepageTable= codepageTable])]
[%number=] xmlDoc/XmlNode:LoadFromStringlist( stringlist, [string])
[%number=] xmlDoc/XmlNode:LoadXml( string, [string])
%unicode= xmlDoc/XmlNode:LocalName[( [name])]
%object= xmlNode:Next
%boolean= xmlNode:NoEmptyElement
%unicode= xmlDoc/XmlNode:Prefix[( [prefix])]
%unicode= xmlDoc/XmlNode:PrefixURI( prefix, [xpath])
%object= xmlNode:Previous
xmlDoc/XmlNode:Print[( [xpath], [options])]
%unicode= xmlDoc/XmlNode:Qname[( [qname])]
%number= xmlDoc/XmlNode:SelectCount( unicode)
%object= xmlDoc/XmlNode:SelectNodes[( [xpath])]
%object= xmlDoc/XmlNode:SelectSingleNode[( [xpath])]
%string= xmlDoc/XmlNode:Serial[( [xpath], [options], - [AddTrailingDelimiter= addTrailingDelimiter])]
%string= xmlDoc/XmlNode:ToXPathString[( [xpath])]
%object= xmlDoc/XmlNode:ToXPathStringlist[( [xpath])]
xmlDoc/XmlNode:Trace[( [xpath], [options])]
%xmlNodeType= xmlDoc/XmlNode:Type[( [xpath])]
%unicode= xmlDoc/XmlNode:URI[( [xpath])]
[%number=] xmlDoc/XmlNode:Validate( schema, [options])
%unicode= xmlDoc/XmlNode:Value[( [xpath])]
%unicode= xmlDoc/XmlNode:ValueDefault[( [xpath], [value])]
%object= xmlDoc/XmlNode:XPathNodeID[( [xpath])]
%object= xmlNode:XmlDoc