Visual FoxPro requires that an XMLTable object or objects is associated with an XMLAdapter object, before attempting to call the ToXML method.
-
Execute the XMLAdapter objects, AddTableSchema method, to create the XMLTable and XMLField collections, or otherwise create these items.
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08