Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML Parser Path Problem
Message
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01159840
Message ID:
01159846
Views:
12
>I don't know how many times I've said this, but "It runs fine on my machine..."
>
>It looks like the XMLTOCURSOR function doesn't work well with paths that have a period in them. Seems strange as I think this is pretty common. I'm just curious to see if anyone else has run into this before.
>
>Thanks,
>-m@
>
>When I run this under an Administrator account on another computer, I get a 1435 - XML Parse error: The system cannot find the path specified.
>
>The path is as follows on the failing machine:
>
>C:\Documents and Settings\administrator.MyDom\Application Data\MyApp\MyData.XML
>
>
>The path on my development machine is:
>
>C:\Documents and Settings\MattW\Application Data\MyApp\MyData.XML
>
>
>
>This code fails:
>
>oApp.RecCount = XMLTOCURSOR(oApp.MyAppDataPath + "MyData.XML", "c_Data", 512)
>
>
>If I use FileToStr() to convert the file and pass that to the XML parser, it works fine:
>
>lcStr = FILETOSTR(oApp.MyAppDataPath + "MyData.XML")
>oApp.RecCount = XMLTOCURSOR(lcStr, "c_Data")
>
How about:
oApp.RecCount = XMLTOCURSOR((oApp.MyAppDataPath + "MyData.XML"), "c_Data", 512)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform