Note to self & Aurimas: these lines are too fragile and are too likely to break the xml. I say we fix the CDATA stuff when putting it in the field and we probably need to be more conservative re lines 151/152, maybe only take out the "prim:" specifically