Add CDATA section in existing XML string in Swift 3.0 / ObjectiveC

I have an xml / xml string as the response I get from a single API. Now I need to send this xml to another API with a CDATA section. So my question is: how to add a CDATA section to an existing XML or XML string. This script is in the Soap API in Swift 3.0.

+4
source share
1 answer

Below is the xml

the code

<tem:InputSTR><![CDATA[ This is where you put your xml ]]></tem:InputSTR>

Please provide the code the next time you post a question and it will be easier for you to help others.

0
source

Source: https://habr.com/ru/post/1666915/


All Articles