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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only