DeleteSelectionPrefix (XmlDoc subroutine): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
Line 1: Line 1:
<span style="font-size:120%; color:black"><b>Delete prefix's XPath-selection association</b></span>
{{Template:XmlDoc:DeleteSelectionPrefix subtitle}}
[[Category:XmlDoc methods|DeleteSelectionPrefix subroutine]]
[[Category:XmlDoc methods|DeleteSelectionPrefix subroutine]]
[[Category:XmlDoc API methods]]
[[Category:XmlDoc API methods]]
Line 12: Line 12:
node name prefix identified by its string argument.
node name prefix identified by its string argument.
DeleteSelectionPrefix is new as of version 7.0 of the ''Sirius Mods''.
DeleteSelectionPrefix is new as of version 7.0 of the ''Sirius Mods''.
===Syntax===
==Syntax==
  Call doc:DeleteSelectionPrefix(prefix)
{{Template:XmlDoc:DeleteSelectionPrefix syntax}}
 
===Syntax terms===
====Syntax Terms====
<dl>
<dl>
<dt>doc
<dt>doc
Line 25: Line 24:


</dl>
</dl>
===Usage Notes===
==Usage notes==


This method has no cancellation conditions other than the usual requirement
This method has no cancellation conditions other than the usual requirement

Revision as of 16:58, 22 January 2011

Delete prefix's XPath-selection association (XmlDoc class)

DeleteSelectionPrefix is a member of the XmlDoc class.

This subroutine removes any XPath selection association for the node name prefix identified by its string argument. DeleteSelectionPrefix is new as of version 7.0 of the Sirius Mods.

Syntax

doc:DeleteSelectionPrefix( prefix)

Syntax terms

doc
An XmlDoc object expression.
prefix
A string prefix (the part of the name before the colon) for a node. This is a Unicode string argument; prior to Sirius Mods version 7.6, this is an EBCDIC string.

Usage notes

This method has no cancellation conditions other than the usual requirement that the method object not be Null.

Example

In the following example fragment, a prefix is temporarily used in an XPath expression, then deleted:

     ...
    %doc:SelectionNamespace('tempP') = 'urn:localxxx'
    %node = %inpNode:SelectSingleNode('tempP:infoChild')
    %doc:DeleteSelectionPrefix('tempP')
     ...

See Also

  • The IsSelectionPrefix method is useful in conjunction with DeleteSelectionPrefix.
  • The SelectionNamespace method specifies the namespace URI associated with a prefix, when the prefix is used in an XPath expression.