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.