Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xmltocursor problem
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00659030
Message ID:
00659039
Views:
35
>Travis hello,
>
>I tried the switch with similar results. According to VFP7 docs:
>XMLTOCURSOR(XMLSource eExpression | cXMLFile [, cCursorName [, nFlags ]])
>
>
>>Terry,
>>
>>Assuming what you entered here is what you typed in to execute, you have the first 2 parameters switched around. The first parameter is your table alias or work area and the second parameter is your file name.
>>
>>HTH
>>
>>>I'm having a problem using xmltocursor so I used cursortoxml to convert a dbf to xml so I could understand what structure it was expecting.
>>>
>>>My output from this was xmltest.xml.
>>>
>>>Then I executed:
>>>lnrecs=xmltocursor("xmltest.xml","mycusts",512)
>>>I get error: XML parse error: syntax error: node "VFPData" XML = ...
>>>
>>>What am I missing?


Could it be a pathing issue in finding the xmltest.xml file? I just did the exact same thing except I placed a path in the xml file parameter. It worked just fine.

Pat.
Patrick L. Stovall
Senior Architect/Developer
MCP - C#

VeroQuest
P.O.Box 7216
Kalispell, MT 59904
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform