Connecting Apama Applications to External Components > Using Message Services > Using 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
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 and mapped to XML sub-document strings generated by convention-based XML mapping.
To combine these approaches:
1. Right-click a source event (representing an XML root element) or sequence (representing a list of XML elements) and click Add Computed Node.
2. 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.
3. 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 © 2013-2015 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.