1b.app
Link copied -

CDATA in XML feed

Good afternoon.
We encountered the following problem while working with XML feed.
???? The gist:
We receive an incoming XML feed containing <![CDATA[...]]> blocks, most commonly found in property listings. This feed is processed in our system, and then we generate our own output feed, which is sent to the Kyero portal.
???? Problem:
The Kyero portal prohibits the use of CDATA (as well as HTML tags) in text fields, especially <description>. As a result, our feed is rejected when imported to their side.
✅ Question:
Is it possible to remove the CDATA wrapper at the output feed generation stage in our system and pass the content as plain text? It is important that:
Special characters (<, >, &) were preserved in correct XML form (for example, replaced with <, >, &)
The XML structure was not violated
Original question is available on version: ru

Answers:

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment