|Navigation: Templates > Guide to all Templates > Code Templates >====== Export to XML code template ======|
The Export to XML code template is used to write the contents of a valid data source (or origin) to an external XML file. This code template is actually a wrapper around the built-in class library support for XML parsing.
The following prompts are provided:
|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.|
|Mapping File||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).|
|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).|
|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 export to.|
|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 export to.|
Root and Row Tags can contain letters, numbers, and other characters. They must not start with a number or punctuation character or with the letters xml (or XML or Xml ..). They cannot contain spaces
|XML Style||Select Tag-based or Attribute-based. This setting controls the XML formatted output style.|
For more information, please review the Clarion XML Support Reference Guide PDF file included in your install.