myXMLFile = "c:\test\MyXML.XML" XMLTOCURSOR(myXMLFile,"cMyCursorName", 512) && The flag 512 is importand if you send a filename to function * --- or ---* myXMLFile = FILETOSTR("c:\test\MyXML.XML") XMLTOCURSOR(myXMLFile,"cMyCursorName")of course all above is according to HELP in VFP 8.0 (sorry)