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:
00657054
Views:
35
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) 
HTH

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
Ronald L. Thorp
http://www.Fox-Pros.com
Fox-Pros, Inc.
Office 407-498-0100
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform