Chapter - 6 : Using XML Print Driver
The XMPLIB library allows you to use Documaker RP to create Docucorp Standard XML output. You can unload Docucorp Standard XML output from GenData or GenPrint programs (using the PrintFormset rule).
Here is an example of the INI setup this feature requires:
< Printers >
PrtType = XMP
< PrtType:XMP >
Module = XMPW32
PrintFunc = XMPPrint
Note: No other INI options are needed.
Additional XML tags and information can be optionally written to the output files.
To produce these additional XML tags, add either Filter and\or OutputEmptyField options to the INI group.
<PrtType:XMP>
Filter = Yes | No (the default is Yes)
OutputEmptyFields = Yes | No (the default is No)
Options | Description |
---|---|
Filter | Yes (default): Standard XML tag and attribute information is written to the XML output files.
No: Additional static section (FAP) content, font and attribute information is written to the XML output files. When this option is set to No, field information such as prompt, color, font id and coordinates, text label name (plus coordinates, color, font id) is also written to the XML output file |
OutputEmptyFields | Yes: If a field is not populated with data, the field name is still written to the output XML files. No (default): If a field is not populated with data, the field name is omitted from the output XML files. |
When using with Documaker RP, it is recommended to use the MultiFilePrint functionality to create a separate XML file per transaction. If multiple XML files are written into the same file, the file will not load in an XML parser, browser, or editor.