Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem reading XML file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01106024
Message ID:
01106390
Vues:
28
Hi Aleksey... I could have sworn I attched following code which is causing the error.. the Tables(1).ToCursor

adapter = CREATEOBJECT("XMLADAPTER")
x=Adapter.LoadXML("RAAP.XML",.T.)
Adapter.Tables(1).ToCursor()

I also nned to determine,eg. how may Tables, etc

Regards,
Gerard



>>Hi.
>>Im getting the following message usinf XmlToCursor:-
>>XML Parse Error - Invalid at the top level of the document Line 1, Postion 1
>>
>>However, if I open form within Dot Net (Using File ..Open) it opens the file fine and I can drill doen into all the records.
>>
>>I suspect that VFP cannot open all XML files.
>>(This parcticlaur file has 3 different record types)
>>Is there any utility that will copy an XML file to a cursor(s) (Preferably in VFP) or will I need to develop something in Dot Net to access the XML file ?
>>
>>Regards,
>>Gerard
>
>Hi Gerald,
>
>You didn't post any code, the problem can be as simple as missing 512 flag in the third parameter.
>
>Aleksey.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform