XmlNode methods syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
(Automatically generated page update)
 
Line 97: Line 97:


Throws [[XPathError class|XPathError]]</p>
Throws [[XPathError class|XPathError]]</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">%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 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>


Throws [[XPathError class|XPathError]]</p>
Throws [[XPathError class|XPathError]]</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>

Latest revision as of 19:42, 11 May 2016

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])] Throws XPathError

%outNod = nod:DeepCopy

nod:DeepDiscard

%unicode = nr:DefaultURI[( [xpath])] Throws XPathError

nr:DeleteSubtree[( [xpath])] Throws XPathError

%boolean = nr:Exists( xpath) Throws XPathError

[%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])] Throws XPathError

nr:LoadFromRecord[( [AttributeValues= boolean], [AttributeNames= boolean], - [NamesToLower= boolean], [AllowUnreversible= boolean], - [CodepageTable= boolean], [Base64Encode= boolean], - [CharacterMap= characterToUnicodeMap])] Throws CharacterTranslationException

[%number =] nr:LoadFromStringlist( sl, [string]) Throws XmlParseError

[%errorPosition =] nr:LoadXml( input, [options]) Throws XmlParseError

%unicode = nr:LocalName[( [xpath])] Throws XPathError

%outNod = nod:Next

%currentBoolean = nod:NoEmptyElement nod:NoEmptyElement = newBoolean

%unicode = nr:Prefix[( [xpath])] Throws XPathError

%unicode = nr:PrefixURI( prefix, [xpath]) Throws XPathError

%outNod = nod:Previous

nr:Print[( [xpath], [options])] Throws XPathError

%unicode = nr:QName[( [xpath])] Throws XPathError

%number = nr:SelectCount( xpath) Throws XPathError

%nodl = nr:SelectNodes[( [xpath])] Throws XPathError

%nod = nr:SelectSingleNode[( [xpath])] Throws XPathError

%string = nr:Serial[( [xpath], [options], [AddTrailingDelimiter= boolean])] Throws XPathError

%string = nr:ToXPathString[( [selectionXpath])] Throws XPathError

%sl = nr:ToXPathStringlist[( [selectionXpath])] Throws XPathError

nr:Trace[( [xpath], [options])] Throws XPathError

%xmlNodeType = nr:Type[( [xpath])] Throws XPathError

%unicode = nr:URI[( [xpath])] Throws XPathError

%currentUnicode = nr:Value[( [xpath])] nr:Value[( [xpath])] = newUnicode Throws XPathError

%unicode = nr:ValueDefault[( [xpath], [value])] Throws XPathError

%doc = nod:XmlDoc

%sl = nr:XPathNodeID[( [selectionXpath])] Throws XPathError