Deploying and Managing Apama Applications > Correlator-Integrated Messaging for JMS > Mapping Apama events and JMS messages > Convention-based XML mapping > Combining convention-based XML mapping with template-based XML generation
Combining convention-based XML mapping with template-based XML generation
Note that for maximum flexibility it is also possible to combine the convention-based approach with template-based XML generation. An XML template can be used to generate the top-level XML document, while one or more placeholders can be added which are mapped to XML sub-document strings generated by convention-based XML mapping.
To combine these approaches, simply right-click a source event (representing an XML root element) or sequence (representing a list of XML elements) and click Add Computed Node; then select Convert to XML from the drop-down list and click OK. This will result in a Convert To Xml node representing a generated XML string. Next, drag a mapping line from that node to the target $placeholder node specifying where the XML snippet should be inserted into the top-level document.
Copyright © Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its Subsidiaries and or/its Affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.