>Do I understand that I have to do it when storing the XML? For example, the current code of saving the cursor to XML is:
Fox will do that for you if you mark the fields which may contain binaries as binary, i.e. NOCPTRANS. You don't have to change your tables, just create the cursor so and insert whatever you need into it. Then check the xml and you'll see proper CDATA wrapping.
At least that's what I had to do back in VFP7, but I also think I had to do it a couple of years ago... well, if that 8 doesn't work, try this.
>
>CURSORTOXML( cCursorName, "MyXmlFile.Xml", 1, 512, 0, "" )
>
>
>So I would need to change it to?:
>
>CURSORTOXML( cCursorName, "MyXmlFile.Xml", 1, 512+8, 0, "" )
>
>
>Thank you.
>
>
>
>>Wrap binary data in CDATA tag
>>>
>>>I am storing an encrypted string into an XML file. But when I try to load this XML into a cursor I get error "An invalid character was found in text content". The code of loading the XML file is:
>>>
>>>XMLTOCURSOR( "MyXmlFile.xml", cCursorName, 512+8192)
>>>
>>>
>>>And this encrypted string is stored in XML using CURSORTOXML(). What do I need to do when storing or loading this stgring to make it work?
>>>
>>>TIA