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!&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>