In using XMLString::transcode on AIX, have found that the return code is identical (1) whether the buffer is of sufficient size (BUFFER_SIZE) or not. Other Unix platforms, for example, Solaris, return 1 when buffer is sufficient and 0 when not.
int return_code = XMLString::transcode(input_string, buffer, BUFFER_SIZE - 4);
Karen Bradshaw
IONA Technologies
Title: XMLString::transcode and AIX