XmlNode methods syntax: Difference between revisions
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 33: | Line 33: | ||
<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">nod</span><span class="literal">:[[Previous (XmlNode function)|Previous]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%object</span><span class="literal">=</span> <span class="term">nod</span><span class="literal">:[[Previous (XmlNode function)|Previous]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">nr</span><span class="literal">:[[Print (XmlDoc/XmlNode subroutine)|Print]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">options</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">nr</span><span class="literal">:[[Print (XmlDoc/XmlNode subroutine)|Print]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">options</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p> | ||
<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">:[[ | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%unicode</span><span class="literal">=</span> <span class="term">nr</span><span class="literal">:[[QName (XmlDoc/XmlNode function)|QName]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">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">nr</span><span class="literal">:[[SelectCount (XmlDoc/XmlNode function)|SelectCount]]</span><span class="literal">(</span> <span class="term" title="Unicode">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">%number</span><span class="literal">=</span> <span class="term">nr</span><span class="literal">:[[SelectCount (XmlDoc/XmlNode function)|SelectCount]]</span><span class="literal">(</span> <span class="term" title="Unicode">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">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">%object</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> |
Revision as of 13:27, 24 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=] nod:AddAttribute( name, value, [uri])
[%object=] nr:AddComment( comment)
[%object=] nr:AddElement( name, [value], [uri])
nod:AddNamespace( prefix, uri)
[%object=] nr:AddPI( name, value)
[%object=] nr:AddSubtree( xmlNode, [DefaultURI= unicode])
[%object=] nod:AddText( text)
nod:AppendValue( text)
nr:Audit[( [xpath], [options])]
%object= nod:DeepCopy
%unicode= nr:DefaultURI[( [xpath])]
nr:DeleteSubtree[( [unicode])]
%boolean= nr:Exists( unicode)
[%object=] nod:InsertCommentBefore( comment)
[%object=] nod:InsertElementBefore( name, [value], [uri])
[%object=] nod:InsertPIBefore( name, value)
[%object=] nod:InsertSubtreeBefore( xmlNode, [DefaultURI= unicode])
[%object=] nod:InsertTextBefore( text)
%number= nr:Length[( [xpath])]
nr:LoadFromRecord[( [AttributeValues= boolean], [AttributeNames= boolean], - [NamesToLower= boolean], [AllowUnreversible= boolean], - [CodepageTable= boolean])]
[%number=] nr:LoadFromStringlist( stringlist, [string])
[%number=] nr:LoadXml( string, [string])
%unicode= nr:LocalName[( [name])]
%object= nod:Next
%boolean= nod:NoEmptyElement
%unicode= nr:Prefix[( [prefix])]
%unicode= nr:PrefixURI( prefix, [xpath])
%object= nod:Previous
nr:Print[( [xpath], [options])]
%unicode= nr:QName[( [qName])]
%number= nr:SelectCount( unicode)
%object= nr:SelectNodes[( [xpath])]
%object= nr:SelectSingleNode[( [xpath])]
%string= nr:Serial[( [xpath], [options], [AddTrailingDelimiter= boolean])]
%string= nr:ToXPathString[( [xpath])]
%object= nr:ToXPathStringlist[( [xpath])]
nr:Trace[( [xpath], [options])]
%xmlNodeType= nr:Type[( [xpath])]
%unicode= nr:URI[( [xpath])]
[%number=] nr:Validate( schema, [options])
%unicode= nr:Value[( [xpath])]
%unicode= nr:ValueDefault[( [xpath], [value])]
%object= nr:XPathNodeID[( [xpath])]
%object= nod:XmlDoc