SELECT Title,Message FROM ALIAS() INTO CURSOR Temp * Create XML object ... * Add root ... SCAN ... * Add each field loXML.AddElement(loProperty,'Title',Titre) loXML.AddElement(loProperty,'Abstract',Message) ENDSCAN RETURN STRCONV(loXML.XML(),9)However, the only way I was able to make use of your function was to use it against the field directly, such as:
SELECT Title,Message FROM ALIAS() INTO CURSOR Temp * Create XML object ... * Add root ... SCAN ... * Add each field loXML.AddElement(loProperty,'Title',Titre) loXML.AddElement(loProperty,'Abstract',IsoToUTF8(Message)) ENDSCAN RETURN loXML.XML()If I do this, this will never work as it removes the tag recognition from the XML string:
SELECT Title,Message FROM ALIAS() INTO CURSOR Temp * Create XML object ... * Add root ... SCAN ... * Add each field loXML.AddElement(loProperty,'Title',Titre) loXML.AddElement(loProperty,'Abstract',Message) ENDSCAN RETURN IsoToUTF8(loXML.XML())IAC, the problem is at the Web Service level. I tried it at the Web app level to see if it was related to a memory problem. This doesn't seem to be case.
RETURN STRCONV(STRCONV(loXML.XML,1),9)So, what would I need to change in your function to support that double conversion?