The Values to XML Module is used to write out XML data from InputAccel. When you map the values to your template XML file, you have the option of checking the “Write if Empty” flag. If checked, this flag will mean that the tag will still be written even if there is no data for that tag.
Normally, the “Write if Empty” flag is checked or unchecked when you configure your InputAccel process, however, there may be a need to dynamically change this flag.
Being able to dynamically change this flag allows you to decide whether to output empty tags from within your process VBA code, rather than having it set in the configuration settings.
InputAccel does not expose these flags in the IA Values which means that unless you manually expose these flags, you cannot alter their values dynamically.
To expose the “Write if Empty” flags, you need to do the following…
1. Create a new text file called “ValXML.mdf” and store it in the same directory as your process.
2. Add the following code to your ValXML.mdf file…