Preserve CDATA nodes when converting XML string into XMLElement

CDATA was getting identified as DOMText and therefore sanitised when it should be preserved as a CDATA section.