FileMaker DDR Generates malformed XML
Operating system version
Description of the issue
It's possible to put characters into a calculation field inside FileMaker that when output as XML in the DDR gives invalid XML. Using XML validation tools such as "xmllint" you get errors and you can't import data from the DDR properly as it fails validation.
I have a sample file with an example showing with a CF that I can send you to get the specific characters.
Steps to reproduce the problem
Create a new file, copy the text into a calculation ( anywhere, a field or CF will do). Generate the DDR. Run validation tests on the DDR.
This also causes issues when copying the element (field or CF etc) from this file to anywhere else. This means the copy and paste of this CF inside FMP will also fail.
It should produce valid XML and should encode any characters that aren't valid.
The CDATA section within the calculation output fails validation.