You can extract schema from XML and use it to create empty cursor.
lcXmlFile = "Whatever.xml"
lcXmlSchema = STREXTRACT(FILETOSTR(lcXmlFile), "", "</xsd:schema>",1,4) + "</VFPData>"
? XMLTOCURSOR(lcXmlSchema,"crsXml")
>
>I have an XML file that has the XSD schema in the beginning of the file. The file is created with the CursorToXML() function.
>
>Is there anyway for me to get a blank cursor using that embedded schema without loading the entire file.
--sb--