When outputting to XML, EscapeE enables you to export more than just the data content of the fields. For example, you may specify a style sheet so that you control the way that the data is presented and set up a path to run the XML using the program of your choice.
Set up the data fields as usual (see Defining fields and tags) then:
|Select Edit... from the Fields menu or
press Ctrl and D keys.
|The Field dialog opens: click the XML tab. You may need to scroll the tabs to the right to bring the tab into view.
|Tick Include XY coordinates to output the locations of the top-left corner of the fields.
|Tick Include graphic field data to output any fields of TYPE "Graphic"; they will be encoded as PNG images.
|Tick Include font information to use font attributes defined in the current document in the output XML.
|Tick Include width and height to output the size of the field; see notes below.
|To create a margin around text within a field area, enter the size (measured in 1/300 inch) in the Padding edit-box.
|You may set up a command-line to run the XML to an application program:
|Enter a top-level tag name. If omitted, the default is the stem of the field definitions file name. E.g.: MYxmlDATA.
|Specify, or Browse... to, the XSL Stylesheet to be used for the output XML. E.g.: MyStyleSheet.XSL.
|Nominate an associated Program to process XML output. The default is normally the default browser. E.g. IEXPLORE.EXE.
|Enter any other Program parameters that you require: see Command line syntax for descriptions of the options.
If the field is of TYPE "Graphic", the width and height of the image is given in pixels; if the image's resolution does not match that of EscapeE (normally 600dpi), the SCALE factor that EscapeE has applied to the image is also given. For example, a 1inch square PNG image with a resolution of 100dpi might produce this fragment of XML:
<FIELD... TYPE="GRA" FILETYPE="PNG" WIDTH="100" HEIGHT="100" SCALE="6">.
In the case of images with no intrinsic resolution (e.g. JPEG), the default resolution is stored in the image when it is exported to XML.
Exporting data fields to XML
Setting Log file options
Log file export