Import.XML.Trace

Description

Setting that determines whether import trace information is written to a log file.

Applies to

DataWindow objects

Syntax

Describe and Modify argument:

"DataWindow.Import.XML.Trace { = ' value ' }"

Parameter

Description

value

Whether trace information is written to a log file.

Values are:

  • Yes – Trace information is written to a log file.

  • No – Trace information is not written to a log file (default).

Usage

If you want to collect trace information, this property should be set before you call the ImportClipboard, ImportFile, or ImportString method to import data from an XML document. The trace information is appended to the file you specify using the Import.XML.TraceFile property. If no trace file is specified, trace information is appended to a file named pbxmltrc.log in the current directory.


In the painter

In the Data Import category in the Properties window for the DataWindow object, select XML from the Import list, set XML Trace to True and supply a trace file name.

Examples

Example 1

This example specifies that trace information should be written to a file called xmltrace.log in the C:\temp directory.

[Visual Basic]
dw1.Modify("DataWindow.Import.XML.Trace = 'yes' ")
dw1.Modify("DataWindow.Import.XML.TraceFile =
   'C:\temp\xmltrace.log' ")

See also