cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting an XML Output

aditya_gupta41
Contributor

After a REST POST execute, my response comes as:
beg
end

I want to remove the part which is enclosed in <>. The output file is in CSV format and should capture data after “CDATA[” and ends at “]]”.

1 REPLY 1

j_angelevski
Contributor III

Hi @aditya.gupta41 ,

Can you please put the XML code into preformatted text so we can easily copy the data ? Preformatted text

When you get XML response you can use a mapper with binary output and map the $response as $content and map $[‘content-type’] to “application/xml” in the mapper. Then you can use XML parser to get the XML data form the response and map the field that contains the CDATA.

image