lcBadChar = "" for i = 1 to 32 if ( ! inlist( i, 9, 10, 13 ) ) lcBadChar = lcBadChar + chr(i) endif endfor lcOkMemo = chrtran( lcMemo, lcBadChar, space( len( lcBadChar ) ) )>According to KB#315580 any characters below ASCII 32 (other than 9,10, and 13) will cause the "An Invalid character was found in text content". Does anyone have any suggestions for trapping for the existence of these characters so that XMLtoCursor will not fail? Or am I left to catch this error, call a routine to strip all such characters and then issue the XMLtoCursor again? In doing it this way, I am thinking I have to check for each (1-32 exect 9,10 and 13) or is there some other way to strip out?