XmlDoc methods syntax: Difference between revisions
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 9: | Line 9: | ||
<span class="squareb">[</span><span class="literal" title="Boolean">IgnoreUndefinedFields=</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">IgnoreUndefinedFields=</span> <span class="term" title="Boolean">boolean</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">%nod</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">doc</span><span class="literal">:[[AddTopElement (XmlDoc function)|AddTopElement]]</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">uri</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">MoveNamespace=</span> <span class="term" title="Boolean">boolean</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">%nod</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">doc</span><span class="literal">:[[AddTopElement (XmlDoc function)|AddTopElement]]</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">uri</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">MoveNamespace=</span> <span class="term" title="Boolean">boolean</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">% | <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">%currentXmlAdjacentTextSetting</span><span class="literal"> =</span> <span class="term">doc</span><span class="literal">:[[AdjacentText (XmlDoc property)|AdjacentText]]</span> | ||
<span class="term">doc</span><span class="literal">:[[AdjacentText (XmlDoc property)|AdjacentText]]</span> <span class="literal">= </span><span class="term"> | <span class="term">doc</span><span class="literal">:[[AdjacentText (XmlDoc property)|AdjacentText]]</span> <span class="literal">= </span><span class="term">newXmlAdjacentTextSetting</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">%currentBoolean</span><span class="literal"> =</span> <span class="term">doc</span><span class="literal">:[[AllowNull (XmlDoc property)|AllowNull]]</span> | ||
<span class="term">doc</span><span class="literal">:[[AllowNull (XmlDoc property)|AllowNull]]</span> <span class="literal">= </span><span class="term"> | <span class="term">doc</span><span class="literal">:[[AllowNull (XmlDoc property)|AllowNull]]</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">% | <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">doc</span><span class="literal">:[[AllowXmlElement (XmlDoc property)|AllowXmlElement]]</span> | ||
<span class="term">doc</span><span class="literal">:[[AllowXmlElement (XmlDoc property)|AllowXmlElement]]</span> <span class="literal">= </span><span class="term"> | <span class="term">doc</span><span class="literal">:[[AllowXmlElement (XmlDoc property)|AllowXmlElement]]</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">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></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="literal">%(XmlDoc):[[ClientCertificate (XmlDoc function)|ClientCertificate]]</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> - | <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="literal">%(XmlDoc):[[ClientCertificate (XmlDoc function)|ClientCertificate]]</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> - | ||
Line 24: | Line 24: | ||
<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">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">doc</span><span class="literal">:[[DeleteTopElement (XmlDoc subroutine)|DeleteTopElement]]</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">:[[DeleteTopElement (XmlDoc subroutine)|DeleteTopElement]]</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">%currentString</span><span class="literal"> =</span> <span class="term">doc</span><span class="literal">:[[Encoding (XmlDoc property)|Encoding]]</span> | ||
<span class="term">doc</span><span class="literal">:[[Encoding (XmlDoc property)|Encoding]]</span> <span class="literal">= </span><span class="term"> | <span class="term">doc</span><span class="literal">:[[Encoding (XmlDoc property)|Encoding]]</span> <span class="literal">= </span><span class="term">newString</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> | <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> | ||
<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">%currentXmlInvalidChar</span><span class="literal"> =</span> <span class="term">doc</span><span class="literal">:[[InvalidChar (XmlDoc property)|InvalidChar]]</span> | ||
<span class="term">doc</span><span class="literal">:[[InvalidChar (XmlDoc property)|InvalidChar]]</span> <span class="literal">= </span><span class="term"> | <span class="term">doc</span><span class="literal">:[[InvalidChar (XmlDoc property)|InvalidChar]]</span> <span class="literal">= </span><span class="term">newXmlInvalidChar</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">%position</span><span class="literal"> =</span> <span class="literal">%(XmlDoc):[[InvalidCharacterPosition (XmlDoc function)|InvalidCharacterPosition]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">AllowNull=</span> <span class="term" title="Boolean">boolean</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">%position</span><span class="literal"> =</span> <span class="literal">%(XmlDoc):[[InvalidCharacterPosition (XmlDoc function)|InvalidCharacterPosition]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">AllowNull=</span> <span class="term" title="Boolean">boolean</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">%boolean</span><span class="literal"> =</span> <span class="term">doc</span><span class="literal">:[[IsSelectionPrefix (XmlDoc function)|IsSelectionPrefix]]</span><span class="literal">(</span> <span class="term" title="Unicode">prefix</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">%boolean</span><span class="literal"> =</span> <span class="term">doc</span><span class="literal">:[[IsSelectionPrefix (XmlDoc function)|IsSelectionPrefix]]</span><span class="literal">(</span> <span class="term" title="Unicode">prefix</span><span class="literal">)</span></p> | ||
Line 41: | Line 41: | ||
<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">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">%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">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">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> | <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> | ||
<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">%currentXmlNamespaceSetting</span><span class="literal"> =</span> <span class="term">doc</span><span class="literal">:[[Namespace (XmlDoc property)|Namespace]]</span> | ||
<span class="term">doc</span><span class="literal">:[[Namespace (XmlDoc property)|Namespace]]</span> <span class="literal">= </span><span class="term"> | <span class="term">doc</span><span class="literal">:[[Namespace (XmlDoc property)|Namespace]]</span> <span class="literal">= </span><span class="term">newXmlNamespaceSetting</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="literal">%(XmlDoc):[[New (XmlDoc constructor)|New]]</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="literal">%(XmlDoc):[[New (XmlDoc constructor)|New]]</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="literal">%(XmlDoc):[[NewFromRecord (XmlDoc function)|NewFromRecord]]</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> - | <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="literal">%(XmlDoc):[[NewFromRecord (XmlDoc function)|NewFromRecord]]</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> - | ||
Line 57: | Line 57: | ||
<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">%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">%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">%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">% | <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">doc</span><span class="literal">:[[SelectionNamespace (XmlDoc property)|SelectionNamespace]]</span><span class="literal">(</span> <span class="term" title="Unicode">prefix</span><span class="literal">)</span> | ||
<span class="term">doc</span><span class="literal">:[[SelectionNamespace (XmlDoc property)|SelectionNamespace]]</span><span class="literal">(</span> <span class="term" title="Unicode">prefix</span><span class="literal">)</span> <span class="literal">= </span><span class="term"> | <span class="term">doc</span><span class="literal">:[[SelectionNamespace (XmlDoc property)|SelectionNamespace]]</span><span class="literal">(</span> <span class="term" title="Unicode">prefix</span><span class="literal">)</span> <span class="literal">= </span><span class="term">newUnicode</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> | <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> | ||
<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">%currentString</span><span class="literal"> =</span> <span class="term">doc</span><span class="literal">:[[Standalone (XmlDoc property)|Standalone]]</span> | ||
<span class="term">doc</span><span class="literal">:[[Standalone (XmlDoc property)|Standalone]]</span> <span class="literal">= </span><span class="term"> | <span class="term">doc</span><span class="literal">:[[Standalone (XmlDoc property)|Standalone]]</span> <span class="literal">= </span><span class="term">newString</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">:[[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">%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">%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">%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> | ||
Line 67: | Line 67: | ||
<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">%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">%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> | <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> | ||
<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">%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"> | <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> | ||
<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">%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">% | <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">%currentString</span><span class="literal"> =</span> <span class="term">doc</span><span class="literal">:[[Version (XmlDoc property)|Version]]</span> | ||
<span class="term">doc</span><span class="literal">:[[Version (XmlDoc property)|Version]]</span> <span class="literal">= </span><span class="term"> | <span class="term">doc</span><span class="literal">:[[Version (XmlDoc property)|Version]]</span> <span class="literal">= </span><span class="term">newString</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">%errorPosition</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">doc</span><span class="literal">:[[WebReceive (XmlDoc function)|WebReceive]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="String">formFieldname</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">fieldOccurrence</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">%errorPosition</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">doc</span><span class="literal">:[[WebReceive (XmlDoc function)|WebReceive]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="String">formFieldname</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">fieldOccurrence</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> | <span class="squareb">[</span><span class="term" title="String">options</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p> |
Revision as of 22:03, 14 February 2011
The syntax for each of the XmlDoc 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 XmlDoc methods.
[%nod =] nr:AddComment( value)
[%nod =] nr:AddElement( name, [value], [uri])
[%nod =] nr:AddPI( name, value)
[%nod =] nr:AddSubtree( sourceSubtreeNode, [DefaultURI= unicode])
doc:AddToRecord[( [DisableFieldConstraints= boolean], [CopyIDs= boolean], - [IgnoreUndefinedFields= boolean])]
[%nod =] doc:AddTopElement( name, [uri], [MoveNamespace= boolean])
%currentXmlAdjacentTextSetting = doc:AdjacentText doc:AdjacentText = newXmlAdjacentTextSetting
%currentBoolean = doc:AllowNull doc:AllowNull = newBoolean
%currentBoolean = doc:AllowXmlElement doc:AllowXmlElement = newBoolean
nr:Audit[( [xpath], [options])]
%doc = %(XmlDoc):ClientCertificate[( [AttributeValues= boolean], - [AttributeNames= boolean])]
%outDoc = doc:Copy
%outDoc = doc:DeepCopy
%unicode = nr:DefaultURI[( [xpath])]
doc:DeleteSelectionPrefix( prefix)
nr:DeleteSubtree[( [xpath])]
doc:DeleteTopElement
%currentString = doc:Encoding doc:Encoding = newString
%boolean = nr:Exists( xpath)
%currentXmlInvalidChar = doc:InvalidChar doc:InvalidChar = newXmlInvalidChar
%position = %(XmlDoc):InvalidCharacterPosition( string, [AllowNull= boolean])
%boolean = doc:IsSelectionPrefix( prefix)
%boolean = %(XmlDoc):IsValidString( string, [AllowNull= boolean])
%number = nr:Length[( [xpath])]
nr:LoadFromRecord[( [AttributeValues= boolean], [AttributeNames= boolean], - [NamesToLower= boolean], [AllowUnreversible= boolean], - [CodepageTable= boolean])]
[%number =] nr:LoadFromStringlist( sl, [string])
doc:LoadParameterInfo[( [paramOrFam], [famOrParam])]
doc:LoadSystemMethodInfo( pattern, [ShowBase= boolean])
[%errorPosition =] nr:LoadXml( input, [string])
%unicode = nr:LocalName[( [xpath])]
%currentXmlNamespaceSetting = doc:Namespace doc:Namespace = newXmlNamespaceSetting
%doc = %(XmlDoc):New
%doc = %(XmlDoc):NewFromRecord[( [AttributeValues= boolean], - [AttributeNames= boolean], - [NamesToLower= boolean], - [AllowUnreversible= boolean], - [CodepageTable= boolean], - [AllowNull= boolean])]
%unicode = nr:Prefix[( [xpath])]
%unicode = nr:PrefixURI( prefix, [xpath])
nr:Print[( [xpath], [options])]
%unicode = nr:QName[( [xpath])]
%number = nr:SelectCount( xpath)
%nodl = nr:SelectNodes[( [xpath])]
%nod = nr:SelectSingleNode[( [xpath])]
%currentUnicode = doc:SelectionNamespace( prefix) doc:SelectionNamespace( prefix) = newUnicode
%string = nr:Serial[( [xpath], [options], [AddTrailingDelimiter= boolean])]
%currentString = doc:Standalone doc:Standalone = newString
%string = nr:ToXPathString[( [selectionXpath])]
%sl = nr:ToXPathStringlist[( [selectionXpath])]
nr:Trace[( [xpath], [options])]
%xmlNodeType = nr:Type[( [xpath])]
%unicode = nr:URI[( [xpath])]
%currentUnicode = nr:Value[( [xpath])] nr:Value[( [xpath])] = newUnicode
%unicode = nr:ValueDefault[( [xpath], [value])]
%currentString = doc:Version doc:Version = newString
[%errorPosition =] doc:WebReceive[( [formFieldname], [fieldOccurrence], - [options])]
doc:WebSend[( [options])]
%sl = nr:XPathNodeID[( [selectionXpath])]
%string = doc:Xml[( [options])]