General information
Category:
Coding, syntax & commands
Title:
XMLTOCURSOR parse error (VFP7)
I'm trying to use the XMLTOCURSOR function of VFP7
Why do I always get the message "XML Parse error: Invalid at the top level of the document . Lin 1, position 1. [xml file name]"
e.g. with this sample code
CREATE CURSOR "_XML" (cXML C(1))
INSERT INTO _XML (cXML) VALUES ("XML")
CURSORTOXML("_XML", "C:\XML.xml", 1, 512)
XMLTOCURSOR("C:\XML.xml")
The xml file created on the hard drive looks OK when viewed in a browser etc.
I also cannot get any of the xml files I find on my computer into a cursor - i always get the same error. Any ideas / suggestions of an xml file somewhere on the web I can import to a cursor.
When I get this working, I need to create a cursor from XML returned from a http request e.g. XMLTOCURSOR("http://path and parameters) - will this work?
Neil Shumsky
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only