Create cursor curdummy ... && with the correct structure lnNumberOfRecords=Xmltocursor("yourfile.xml","curdummy",512+8192)