XmlNode methods syntax: Difference between revisions
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 28: | Line 28: | ||
<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">%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">% | <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"> | <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> | ||
<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> | <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> | ||
Line 44: | Line 44: | ||
<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">%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> | <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> | ||
<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 21:28, 14 February 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.
[%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])]
%outNod = nod:DeepCopy
%unicode = nr:DefaultURI[( [xpath])]
nr:DeleteSubtree[( [xpath])]
%boolean = nr:Exists( xpath)
[%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])]
nr:LoadFromRecord[( [AttributeValues= boolean], [AttributeNames= boolean], - [NamesToLower= boolean], [AllowUnreversible= boolean], - [CodepageTable= boolean])]
[%number =] nr:LoadFromStringlist( sl, [string])
[%errorPosition =] nr:LoadXml( input, [string])
%unicode = nr:LocalName[( [xpath])]
%outNod = nod:Next
%currentBoolean = nod:NoEmptyElement nod:NoEmptyElement = newBoolean
%unicode = nr:Prefix[( [xpath])]
%unicode = nr:PrefixURI( prefix, [xpath])
%outNod = nod:Previous
nr:Print[( [xpath], [options])]
%unicode = nr:QName[( [xpath])]
%number = nr:SelectCount( xpath)
%nodl = nr:SelectNodes[( [xpath])]
%nod = nr:SelectSingleNode[( [xpath])]
%string = nr:Serial[( [xpath], [options], [AddTrailingDelimiter= boolean])]
%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])]
%sl = nr:XPathNodeID[( [selectionXpath])]
%doc = nod:XmlDoc