>LOCAL lEmptyCursor >lEmptyCursor=ATC("< /xsd:schema >< /VFPData >",STRTRAN(CHRTRAN(lcxml,CHR(9)+CHR(13)+CHR(10),SPACE(3))," ",""))>0 >XMLTOCURSOR(lcXML, "the alias") >IF lEmptyCursor > DELETE ALL >ENDIF >Yes, either that or the other approach I use to just return a messagebox to notify the user.