CDATA for dataprocessor server-side action additional fields

In the xml for dataprocessor, server-side, additional fields can be added.
Unfortunately, with this type of xml structure, you can’t use CDATA for the additional fields’ values.
You have to go through a regx to replace the illegal xml characters.
It would be nicer (and certainly more efficient processing time wise) to use CDATA, rather than having to check each character to see if it’s illegal or not with a regx.

For example -

Illegal xml character doesn’t work:

<?xml version="1.0" encoding="UTF-8"?>
<data>
     <action sid="{gr_id}" tid="{gr_id}" type="invalid"  extra="Username abc1!&5">
          <![CDATA[Username & Password not found]]>
     </action>
</data>

Corrected with regx to replace illegal characters with escaped value:

<?xml version="1.0" encoding="UTF-8"?>
<data>
     <action sid="{gr_id}" tid="{gr_id}" type="invalid"  extra="Username abc1!&amp;5">
          <![CDATA[Username & Password not found]]>
     </action>
</data>

Would be nice to have something like:

<?xml version="1.0" encoding="UTF-8"?>
<data>
     <action sid="{gr_id}" tid="{gr_id}" type="invalid" >
          <value><![CDATA[Username & Password not found]]></value>
          <extra><![CDATA[Username abc1!&5]]></extra>
     </action>
</data>

Thanks for suggestion.
Autoescaping for attributes will be added as a part of the next build.

As for multiple tags, you can use set_response_xml method, which allows to set any content of response tag ( you can output multiple tags with CDATA wrapping here ), but it will be a not so simple to get such data on the client side.

Thank you. Is there documentation for set_response_xml somewhere for dataProcessor? I am not using the dataConnector.