Try
lcxml = "z:\newclient\results.xml"
XMLTOCURSOR(lcxml, "mycursor4", 512)
>I have an xml file which I am trying to import into VFP cursor using
>lcxml = "z:\newclient\results.xml"
>XMLTOCURSOR("
" + lcXML + "", "mycursor4"). When I run this I get an error
>XML Parse error: variable '_XMLCALVINH' is not found. node "VFPData"XML=
>
z:\newclient\results.xml.
>But when I open the xml file and manually put the
tags, and use
>XMLTOCURSOR("z:\tks\batch2.xml", "mycursor2", 512) ,it works fine.
>
> How can I import without manually inputting the VFPData tags.
>
>Thanks
>Bharat
--sb--