Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLTOCURSOR parse error (VFP7)
Message
From
02/05/2002 08:17:52
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
XMLTOCURSOR parse error (VFP7)
Miscellaneous
Thread ID:
00651766
Message ID:
00651766
Views:
66
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
Map
View

Click here to load this message in the networking platform