Ronald,
Use nFlags = 8 to wrap the memo fields with a CDATA marker in the XML. This also needs to be done if the data contains special characters like <.
>Working with XMLtoCursor and CursorToXML I have found the following error occurs for us. Investigating discovered that we have memo fields in our tables with unrecognizable characters. For example, the user was attempting to enter a capital 'L' and mistakenly hit the Control-L instead. The memo field stored the ascii 12 character rather than the 'L'. When using the CursorToXML function all works okay, however when using XMLtoCursor the error occurs.
>
>How does one trap for this for all instances where the control key would be used by error rather than the Shift key in data entry on an editbox?