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.