## XML refactoring removes CDATA markup

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
mboudreau
Posts: 27

### XML refactoring removes CDATA markup

I tried using the XML Refactoring tool to add an attribute to an element that has CDATA content, e.g.,

Code: Select all

<tex-math notation="LaTeX">  <![CDATA[ $$E = mc^2$$ ]]></tex-math>

When I added the attribute 'version="MathJax"', the CDATA markup was stripped out, leaving me with

Code: Select all

<tex-math notation="LaTeX" version="MathJax">$$E = mc^2$$</tex-math>

How can I add the attribute without making any other changes?
Posts: 5338

### Re: XML refactoring removes CDATA markup

Hi,

Unfortunately the Saxon processor we are using to perform the XML refactoring operations will consider CData sections as plain text so it will lose their original semantics. We have an internal issue registered to somehow try to overcome this limitation and I added your feedback to the opened issue. If we manage to fix it we'll update this forum thread.

Regards,