Trace (XmlDoc/XmlNode subroutine): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
Line 5: Line 5:
<var>Trace</var> is identical to the <var>[[Print (XmlDoc/XmlNode subroutine)|Print]]</var> method,
<var>Trace</var> is identical to the <var>[[Print (XmlDoc/XmlNode subroutine)|Print]]</var> method,
except the result is sent to the selected <var>Trace</var> stream
except the result is sent to the selected <var>Trace</var> stream
(like the User Language <var>Trace</var> statement), and the default indentation is one
(like the User Language <var>[[Trace statement]]</var>), and the default indentation is one
space instead of three.
space instead of three.


The default <var>Trace</var> stream is the terminal, so unless you
The default <var>Trace</var> statement stream is the terminal, so unless you
reset the [[ULTRACE parameter|ULTRACE]] parameter to select another stream,
reset the [[ULTRACE parameter|ULTRACE]] parameter to select another stream,
<var>Trace</var> is the same as using the <var>Print</var> method.
<var>Trace</var> is the same as using the <var>Print</var> method.

Revision as of 20:40, 17 February 2011

Display selected subtree on Trace stream (XmlDoc and XmlNode classes)


This subroutine displays an XmlDoc subtree in a readable form, useful for debugging, for example. Trace is identical to the Print method, except the result is sent to the selected Trace stream (like the User Language Trace statement), and the default indentation is one space instead of three.

The default Trace statement stream is the terminal, so unless you reset the ULTRACE parameter to select another stream, Trace is the same as using the Print method. For more information about the Trace statement, see the SirFact PDF documentation.

This method is new in Sirius Mods version 6.7.

Syntax

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

See also