Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XML Parser Path Problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01159840
Message ID:
01159888
Vues:
21
Hi Matt,

I created folder 'C:\Documents and Settings\administrator.MyDom\Application Data\MyApp', created XML file there with CURSORTOXML() and converted it back to a cursor with XMLTOCURSOR() w/o any problem. So it's not the problem with folder names you posted. Any more details?

>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")
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform