Parse CDATA tags and fix errors in bad attribute parsing