DeepDiscard (XmlNode subroutine): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
Line 1: Line 1:
{{Template:XmlNode:DeepDiscard subtitle}}
{{Template:XmlNode:DeepDiscard subtitle}}
Although a generic <var>[[Object variables#Discarding explicitly|Discard]]</var> of an <var>XmlNode</var> is not allowed, you can use the <var>DeepDiscard</var> method to explicitly discard an <var>XmlNode</var> object.
Although a generic <var>[[Object variables#Discarding explicitly|Discard]]</var> of an <var>XmlNode</var> is not allowed, you can use the <var>DeepDiscard</var> method to explicitly discard an <var>XmlNode</var> object.
<p>'''Note:''' <var>DeepDiscard</var> explicitly discards the method object as well as the <var>[[XmlDoc class|XmlDoc]]</var> object with which it is associated.</p>
<p>'''Note:''' <var>DeepDiscard</var> explicitly discards the method object as well as the <var>[[XmlDoc class|XmlDoc]]</var> object with which it is associated.</p>

Latest revision as of 18:52, 1 September 2015

Do deep discard of an XmlNode object (XmlNode class)

[Introduced in Sirius Mods 8.0]

Although a generic Discard of an XmlNode is not allowed, you can use the DeepDiscard method to explicitly discard an XmlNode object.

Note: DeepDiscard explicitly discards the method object as well as the XmlDoc object with which it is associated.

Syntax

nod:DeepDiscard

Syntax terms

nod An XmlNode object, which may be Null.

Usage notes

  • Unlike an XmlNode, you can both Discard and DeepDiscard an XmlNodelist; the former discards only the nodelist; the latter discards both the nodelist and the container XmlDoc.

See also