Deploying and Managing Apama Applications > Correlator-Integrated JMS Messaging > 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 an Convert To Xml node representing a generated XML string, then 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 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.