Modify the QDoc Iteration Node
If your custom program modifies the QDoc iteration node that is passed down, the program must run the updateXMLDocument procedure provided in mfww01b.p. The updateXMLDocument procedure requires a handle to the new updated X-DOCUMENT as a parameter. Here is an example of how you would call the updateXMLDocument procedure:
run updateXMLDocument in pMessageLogger (pQDoc).
Calling updateXMLDocument as illustrated here ensures the iteration node that was sent to the preprocess program is updated with pQDoc.