cancel
Showing results for 
Search instead for 
Did you mean: 

XML input and Text output in an Operation Mapping

pi_consultant1
Participant
0 Kudos

Dear friends,

I have a question regarding a scenario im working on right now...

I've an input xml structure like below and I have to write the text in de CDATA section on a ftp server...

<?xml version="1.0" encoding="UTF-8"?>

<bet:document xmlns:bet="http://www.xxx.com/2012/11/text">

   <data>

      <plain-text><![CDATA[

        This is the text file

        ]]></plain-text>

   </data>

</bet:document>

Im using a XSLT mapping to get the content of the CDATA section. In this case This is the text file...

My question is how can I pass this text in the output of an Operation Mapping? Isn't it the case that our output in an Operation Mapping has to be a XML structure?

I appreciate your help,

Regards,

John 

Accepted Solutions (1)

Accepted Solutions (1)

Ryan-Crosby
Active Contributor
0 Kudos

Hi John,

While that is generally true there are ways around that (i.e. java mapping as a step will not result in XML validation of target structure necessarily).  So an option here would be to map the data to a target structure and then use FCC to strip out the XML content of the message to leave the plain text on the FTP server.

Regards,

Ryan Crosby

Answers (1)

Answers (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi John,

When you select outout methid type as text in XSL then it generates Text outout and Operation mapping output will be text.

but this kind of scenario works with out issues.

Regards,

Raj