Trace (XmlDoc/XmlNode subroutine)

From m204wiki
Revision as of 20:33, 10 October 2012 by JAL (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Trace displays an XmlDoc subtree in a readable form, useful for debugging, for example. Trace is identical to Print, except the result is sent to the currently selected trace stream. That stream can be the user's standard output, the Model 204 audit trail, an internal trace table, or a combination of these (as described for the User Language Trace statement). Also, the default indentation for Trace is one space, while the default for the Print method is 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 Print.

Syntax

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

See also