Processing special chars in XML

bussys

New Member
When creating an XML string with "special" chars in it the following error is produced e.g. if field data is "Research & Development" .

X-DOCUMENT LOAD got an error: FATAL ERROR: 'Expected entity name for reference'. (9082)

I have looked at url-encode but this does not encode for SOAP standards. This function replaces ampersand with "%26" whereas SOAP standard requires "$amp;" ?

I am passing XML as dataset to a ASP.Net front end so require SOAP encoding standards.

Any help greatly appreciated.
 
I have just found out that there is a function in Progress called
"html-encode" which I should be using instead of "url-encode" for passing xml.

I have tested it out and it works fine.
 
Back
Top