Section - 1 : Mapping Fields with XPath
The GenTrn program and the NoGenTrnTransactionProc rule let you use the TRN_Fields control group to map all of your fields with the XPath. To let the system know you are using the XML file, set the XMLTrnFields option in the TRN_File control group to Yes and also set the XMLExtract option in the RunMode control group to Yes.
Here is an example:
< RunMode >
XMLExtract = Yes
< TRN_File >
XMLTrnFields = Yes
< TRN_Fields >
Company = !/Forms/Key1
LOB = !/Forms/Key2
PolicyNum = !/Forms/PolicyNum
RunDate = !/Forms/RunDate;DM-4;D4
Use this format for the Trn_Fields options:
(Field in the Transaction DFD File) = XPath;Field Format
Be sure to include the leading exclamation mark (!). This tells the system to use an XML path search but is not part of the actual search routine. Do not specify whether a field is a key. The system does not support multiple (search) keys with the XML implementation.
If you are selectively excluding transactions, in your exclude file, instead of an offset and SearchMask, replace it with the XPath. Here is an example:
!/Forms[PolicyType="OLD"]