baseballgem
Programmer
I am using VFP7 for creating XML files. The CursortoXML function works fine. It creates the XML and the schema - as it should. Now if I read it correctly it seems the function XMLtoCursor() should do the reverse process. I have an XML file that I created and I even experimented with the one in the XML functions under Help. (scroll down to the example of "a well formatted XML document". I clipped it out to my local c:drive.
When I employed XMLTOCURSOR("c:\develop\mytest.xml","results",4) and I also tried 512 as a final parameter. I get the message...
"XML Parse error: Invalid at the top level of the document. Line 1 Position 1 c:\develop\mytest.xml"
I tried it in several ways - one time I got the error "System Cannot Locate the Object, Line 0, Position 0 (null)"
My Objective is to create a cursor (eventually a table with a record or records) from the info/detail embeded in the XML document.
By all intents and purposes it should work; but it fails.
What am I not understanding? Do I need a patch?
When I employed XMLTOCURSOR("c:\develop\mytest.xml","results",4) and I also tried 512 as a final parameter. I get the message...
"XML Parse error: Invalid at the top level of the document. Line 1 Position 1 c:\develop\mytest.xml"
I tried it in several ways - one time I got the error "System Cannot Locate the Object, Line 0, Position 0 (null)"
My Objective is to create a cursor (eventually a table with a record or records) from the info/detail embeded in the XML document.
By all intents and purposes it should work; but it fails.
What am I not understanding? Do I need a patch?