Hi David
I am creating a php script that automatically creates an XML of products to be imported from a certain DB.
Now I am having problems cleaning the different fields to be XML valid and be able to import it into PT.
When importing it stops and certain characters so I'm guessing I need to clean the fields in the XML.
Can you help with a function to correctly clean product descriptions so that they would be XML valid and be able to be imported into PT.
Thanks for any help!
Hi Andrew,
It sounds like you want to be using CDATA tags - that's the easiest way! Most good feeds use CDATA tags, particularly around description fields. It's very easy to output - for example:
<description><![CDATA[Description text here]]></description>
Hope this helps!
Cheers,
David.