Trace (XmlDoc/XmlNode 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>Display selected subtree on Trace stream</b></span>
{{Template:XmlDoc/XmlNode:Trace subtitle}}
[[Category:XmlDoc methods|Trace subroutine]]
[[Category:XmlDoc methods|Trace subroutine]]
[[Category:XmlNode methods|Trace subroutine]]
[[Category:XmlNode methods|Trace subroutine]]
Line 24: Line 24:


This method is new in ''Sirius Mods'' version 6.7.
This method is new in ''Sirius Mods'' version 6.7.
===Syntax===
==Syntax==
   Call nr:Trace([Xpath], [options])
   Call nr:Trace([Xpath], [options])

Revision as of 16:57, 22 January 2011

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

Trace is a member of the 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 (??Print), 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 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 SirFactR..

This method is new in Sirius Mods version 6.7.

Syntax

  Call nr:Trace([Xpath], [options])