Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XMLTOCURSOR() with invalid characters
Message
 
 
À
27/07/2016 01:31:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01638686
Message ID:
01638739
Vues:
93
>In CURSORTOXML, CDATA encoding applies only to Memo fields (with NOCPTRANS or not), but you have to raise the appropriate flag:
>
>
>CREATE CURSOR C_TEST (field1 c(10), field2 M)
>
>INSERT INTO C_TEST (field1, field2) VALUES ('123','blabla')
>
>CURSORTOXML( "C_TEST", 'TEST.XML', 1, 512 + 8, 0, "" )
>
I don't know if this is by design but when I retrieve the resulting XML into a cursor, the cursor value for field FIELD2 is lower/higher ASCII characters. For example,
CREATE CURSOR C_TEST2 (field1 c(10), field2 m NOCPTRANS)
		
=XMLTOCURSOR( 'TEST.XML', "C_TEST2", 512+8192+1024)    && I added 1024 for the XMLCURSOR To recognize NOCPTRANS
The field C_TEST2.FIELD2 has unreadable characters. Even thought the initial cursor (C_TEST) has readable 'blabla'. Is it because CURSORTOXML converted the text to a binary?
"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
Répondre
Fil
Voir

Click here to load this message in the networking platform