XmlNode methods syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
m (Automatically generated page update)
Line 12: Line 12:
<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">%outNod</span><span class="literal"> =</span> <span class="term">nod</span><span class="literal">:[[DeepCopy (XmlNode function)|DeepCopy]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%outNod</span><span class="literal"> =</span> <span class="term">nod</span><span class="literal">:[[DeepCopy (XmlNode function)|DeepCopy]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">nod</span><span class="literal">:[[DeepDiscard (XmlNode subroutine)|DeepDiscard]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%unicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[DefaultURI (XmlDoc/XmlNode function)|DefaultURI]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%unicode</span><span class="literal"> =</span> <span class="term">nr</span><span class="literal">:[[DefaultURI (XmlDoc/XmlNode function)|DefaultURI]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Unicode">xpath</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
<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>

Revision as of 19:32, 23 August 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

nod:DeepDiscard

%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, [options])

%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