Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help needs on
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
Divers
Thread ID:
00783419
Message ID:
00783448
Vues:
18
Cheang
First, check the XMLToCursor() help. You will notice that in the third parameter, you can use 1024 ( NOCPTRANS ), which transfers the data as a byte per byte basis.
If this does not work, check if creating an XML Schema will work: i never used it, so i can't help you there.
Finally, if all the above does not work, do not use XMLToCursor, but rather use a loop through the XMLDOM. Just load the file into an XML Object, and write a loop that writes records to the cursor. I know this method is a little tedious and generally slow, but note also that you cannot use XMLToCursor for complicated xml structures anyway ( i.e not flat tables ).

HTH
Jaime

>
>When I issue XMLToCursor() call, I received 'XML Parse Error: An invalid character was found in text content'. This is correct because the text contains some extended characters, and this XML string is generated by CursorToXML() function.
>
>Does anyone know a parameter settings that I could use in XMLToCursor() to perform the job?
>
>I tried XMLAdapter in VFP8, but still yield the same error. But this XML string loaded into MSXML.DOMDocument object with LoadXML method without problems, and it can be shown in IE browser too.
>
>
>Thanks in advance.
>
>
>Regards,
>Wan
Why do programs stop working correctly as soon as you leave the Fox?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform