Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Brand new to xml - how to make it work?
Message
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
00957396
Message ID:
00961213
Views:
5
>You've to tell XMLTOCURSOR() that the firts parameter is a file file, not a string or variable.
=xmltocursor('xmlfile.xml','temp', 512)
My XMLTOCURSOR() for a "java" XML file always errors out with "filename, volumn or frive label not found". The XML2.DOMDocument parse okay - no error codes. And when I try to use the DOM string as the source XML, I still get that error.

I don't mind using DOM and nodes syntax to solve the problem - but it would be nice to see if the utility that may be offered by XMLTOCURSOR would prove helpful.

Any idears on the "filename" error?


>
>>So I want to test out the xml functions and see if I can figure it out but the following code doesn't work although it seems like it should.
>>
>>CursorToXML("rtp_funding", "d:\foxpro\xml\XMLFile.xml", 1, 512, 0, "1")
>>xmltocursor('xmlfile.xml','temp')
>>
>>
>>The first line executes OK and produces the file xmlfile.xml which will open in explorer and looks OK, but the second line errors out with a parse error line 1 location 1. Any insights would be appreciated.
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform