Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XMLTOCURSOR() with invalid characters
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01638686
Message ID:
01638688
Vues:
123
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:
CURSORTOXML( cCursorName, "MyXmlFile.Xml", 1, 512, 0, "" )
So I would need to change it to?:
CURSORTOXML( cCursorName, "MyXmlFile.Xml", 1, 512+8, 0, "" )    && I added "8" as per VFP help
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
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform