XmlDoc methods syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
m (Automatically generated page update)
Line 42: Line 42:
<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">name</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">name</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">%xmlNamespaceSetting</span><span class="literal">=</span> <span class="term">doc</span><span class="literal">:[[Namespace (XmlDoc property)|Namespace]]</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">%xmlNamespaceSetting</span><span class="literal">=</span> <span class="term">doc</span><span class="literal">:[[Namespace (XmlDoc property)|Namespace]]</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">%object</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">AttributeValues=</span> <span class="term">attributeValues</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">%object</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">AttributeValues=</span> <span class="term">attributeValues</span><span class="squareb">]</span><span class="comma">,</span>        -
                                   <span class="squareb">[</span><span class="literal">AttributeNames=</span> <span class="term">attributeNames</span><span class="squareb">]</span><span class="comma">,</span>          -
                                   <span class="squareb">[</span><span class="literal">AttributeNames=</span> <span class="term">attributeNames</span><span class="squareb">]</span><span class="comma">,</span>          -

Revision as of 18:10, 22 January 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.

[%object=] nr:AddComment( comment)

[%object=] nr:AddElement( name, [value], [uri])

[%object=] nr:AddPI( name, value)

[%object=] nr:AddSubtree( xmlNode, [DefaultURI= defaultURI])

doc:AddToRecord[( [DisableFieldConstraints= disableFieldConstraints], - [CopyIDs= copyIDs], - [IgnoreUndefinedFields= ignoreUndefinedFields])]

[%object=] doc:AddTopElement( name, [uri], [MoveNamespace= moveNamespace])

%xmlAdjacentTextSetting= doc:AdjacentText

%boolean= doc:AllowNull

%boolean= doc:AllowXmlElement

nr:Audit[( [xpath], [options])]

%object= %(XmlDoc):ClientCertificate[( [AttributeValues= attributeValues], - [AttributeNames= attributeNames])]

%object= doc:Copy

[%number=] doc:Debug[( [options], [length])]

%object= doc:DeepCopy

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

doc:DeleteSelectionPrefix( prefix)

nr:DeleteSubtree[( [unicode])]

doc:DeleteTopElement

%string= doc:Encoding

%boolean= nr:Exists( unicode)

%xmlInvalidChar= doc:InvalidChar

%D:position= %(XmlDoc):InvalidCharacterPosition( string, - [AllowNull= allowNull])

%boolean= doc:IsSelectionPrefix( prefix)

%boolean= %(XmlDoc):IsValidString( string, [AllowNull= allowNull])

%number= nr:Length[( [xpath])]

nr:LoadFromRecord[( [AttributeValues= attributeValues], - [AttributeNames= attributeNames], - [NamesToLower= namesToLower], - [AllowUnreversible= allowUnreversible], - [CodepageTable= codepageTable])]

[%number=] nr:LoadFromStringlist( stringlist, [string])

doc:LoadParameterInfo[( [string], [string])]

doc:LoadSystemMethodInfo( pattern, [ShowBase= showBase])

[%number=] nr:LoadXml( string, [string])

%unicode= nr:LocalName[( [name])]

%xmlNamespaceSetting= doc:Namespace

%doc= %(XmlDoc):New

%object= %(XmlDoc):NewFromRecord[( [AttributeValues= attributeValues], - [AttributeNames= attributeNames], - [NamesToLower= namesToLower], - [AllowUnreversible= allowUnreversible], - [CodepageTable= codepageTable], - [AllowNull= allowNull])]

%unicode= nr:Prefix[( [prefix])]

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

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

%(XmlDoc):PrintSchema[( [string])]

%unicode= nr:Qname[( [qname])]

%number= nr:SelectCount( unicode)

%object= nr:SelectNodes[( [xpath])]

%object= nr:SelectSingleNode[( [xpath])]

%unicode= doc:SelectionNamespace( uri)

%string= nr:Serial[( [xpath], [options], - [AddTrailingDelimiter= addTrailingDelimiter])]

%string= doc:Standalone

%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])]

%string= doc:Version

[%D:position=] doc:WebReceive[( [fieldname], [occurrence], [options])]

doc:WebSend[( [options])]

%object= nr:XPathNodeID[( [xpath])]

%xPathSingleHint= doc:XPathSingleHint

%string= doc:Xml[( [options])]

%D:id= doc:XmlDocID