I have a string attribute as part of one of my entities that is then used in the Export to XML action.
The attribute contains HTML, and during the export process, the opening bracket of each HTML element (<) is encoded to ‘<’. The problem is, the ending bracket (>) is not encoded to ‘>’.
The consumer of my webservice requires this, but there is no easy way to “force” this to happen.
Is this a bug in the Export with Mapping activity?
I had this problem as well, and raised it a potential bug a few weeks ago. The response from Mendix was that this was expected behaviour, and I needed to handle the encoding myself.
Maybe it’s a solution to urlencode your string or add the CDATA tag in the string.
See for some background this thread on stackoverflow: https://stackoverflow.com/questions/1398571/html-inside-xml-should-i-use-cdata-or-encode-the-html