Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XMLAdapter
Message
De
04/02/2003 10:33:27
 
 
À
04/02/2003 02:56:17
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
Divers
Thread ID:
00748365
Message ID:
00748868
Vues:
14
Hi Siegfried.

>I made a simple table and used CURSORTOXML() to make a XML file of this:
>(the brackets are changed by me to place the code here)
>
>(?xml version = "1.0" encoding="Windows-1252" standalone="yes"?)
>(VFPData)
> (person id="1" name="Siegfried" position="Programmer" comment=""/)
> (person id="2" name="Martin" position="Programmer" comment=""/)
> (person id="3" name="Antony" position="Analyst" comment=""/)
>(/VFPData)
>
>But this simple table cannot be loaded with the XMLAdapter. The adapter loads the file and the property IsLoaded is .T., but the tables collection has no members.

IsLoaded = .T. means that the XMLAdapter loaded the XML. However, unless there's a schema in the XML, it won't populate the Tables collection. When you use CURSORTOXML(), specify that a schema should be generated (the sixth parameter).

Doug
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform