User Tools

Site Tools


tplcodetoxml.htm
Navigation:  Templates > Guide to all Templates > Code Templates >====== ToXML code template ====== Previous pageReturn to chapter overviewNext page

This code template is used to export contents to an XML file's from the designated data origin.

Data Origin

Press the ellipsis button to select a valid label of a GROUP, FILE, VIEW or QUEUE that holds the XML contents to export to an XML file. Press the “E” button to call the Expression Editor. This dialog is used to help you construct syntactically correct expressions to use in the Data Origin prompt.

Export file

Press the ellipsis button to select the valid XML source file name to export to. If you wish to select this file at runtime, check the Select export file at runtime check box. You may also specify a variable here (Example: !FilenameVariable).

Mapping file (optional)

Press the ellipsis button to select a valid XML mapping file to use during the export process. In Clarion terms, mapping refers to associating an XML tag or schema to a database column name. If you wish to select this file at runtime, check the Select mapping file at runtime check box. You may also specify a variable here (Example: !FilenameVariable).

Root Tag:

Enter a hard coded string value, or specify a variable that will identify the root tag name (using the !variablename format) to begin the import from.

Row Tag:

Enter a hard coded string value, or specify a variable that will identify the row tag name (using the !variablename format) to begin the import from.

XML Style

Select Tag-based or Attribute-based. This setting controls the XML formatted output style.

tplcodetoxml.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1