Fix issue with useCDATA option to not add CDATA elements to XML attributes

This PR will fix an issue when `useCDATA` is true, CDATA values will be used in attribute values, which is not valid.

This simply disables using CDATA for XML attributes.