cancel
Showing results for 
Search instead for 
Did you mean: 

HCI Capture data after message mapping

0 Kudos

Hi Team,

when the message mapping is done, I want to redesign the XML output that is generated by the mapping.

How can I retrieve the output? Because the content modifier is generating an error message when I put in the body the syntax <bd>{in.body}</bd>. capture18.png

So my question is where is the data which has been generated by the message mapping?

Thanks, KR,

MAssarrar

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Assrar,

Basically this error happens when your XML message has 2 declaration tags.Post your message mapping you have to remove the one and create a XML structure you want to build.

Add XSLT mapping after Message Mapping which will remove the xml tag and then you can add content modifier to make your output look like <bd>{in.body}</bd>

XSLT :

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" omit-xml-declaration="yes" />
	<xsl:template match="@*|node()">
		<xsl:copy>
			<xsl:apply-templates select="@*|node()"/>
		</xsl:copy>
	</xsl:template>
</xsl:stylesheet>

Regards,

Sriprasad Shivaram Bhat

Answers (0)