Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLAdapter
Message
From
04/02/2003 10:33:27
 
 
To
04/02/2003 02:56:17
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
Miscellaneous
Thread ID:
00748365
Message ID:
00748868
Views:
13
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
Previous
Reply
Map
View

Click here to load this message in the networking platform