Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLTOCURSOR parser error
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00657038
Message ID:
00657109
Views:
38
>Not that I am good with XML but...

>When you use Macro Substitution a period denotes the end of the substitution.
>It also runs a little slower :)

>I think you need it to read like this
>   XMLTOCURSOR(gcRootPath+'myDeptxml.xml','Departments',512) 
>Hope this helps

>Ron

>>Hello everyone!!!!
>>
>>I am working on an app that has a routine that calls a search form.
>>the form has a grid that uses a controlsource, Departments. We have decide to make this departments table an XML File. It works fine as long as I am in development. When I run the app, it tells me:
>>
>> XML Parse Error:  The System cannot find the path specified.  Line (0), Position (0). (null)
>>
>>I have included the xml file in the project, in the directory of the calling program, on the network where the data resides and still get nothing.
>>
>this is my code
>>   ** gcRootPath = 'RootDirectoryOnTheNetwork\'
>>   XMLTOCURSOR('&gcRootPath.myDeptxml.xml','Departments',512) && this line generates the error
>>   INDEX ON ALLTRIM(UPPER(cDeptName)) TAG cDeptname	
>>What am I not doing?
>>Thanks in advance

I tried that
I event tried this:
  XMLTOCURSOR('c:\installdir\redemptions\myDeptxml.xml','Deparments',512)
That doesn't work either. What am I doing wrong.
any ideas
What is Wisdom?
Wisdom - The ability to respond to any situation according to God's Plan.
Therefore:
USE Wisdom IN Everything ORDER priority AS Knowledge
SELECT Knowledge
BROWSE FOR Understanding WHERE Wisdom=Guide

LeRoy Jackson
Previous
Reply
Map
View

Click here to load this message in the networking platform