Wednesday, February 22, 2012

Message: An invalid XML character (Unicode: 0xb) was found in the CDATA section.

Once again the XML parsing failed due to a control character (^K)

A simple way to fix in unix was to use the following command and remove such characters from the file

perl -p -i -e 's/[\x00-\x08\x0b-\x0c\x0e-\x1f\x7f]//g' <xmlfile.xml>