Fixes for CDATA

Minidom sometimes fails to parse xml with cdata. There is a workaround for these cases