Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLTOCURSOR parse error (VFP7)
Message
 
 
To
02/05/2002 08:17:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00651766
Message ID:
00651784
Views:
13
Ypu've to specify the third parameter 512 if XML source is a file.
XMLTOCURSOR("h:\temp\XML.xml","__XML", 512)
>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
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform