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:
00659051
Views:
29
Terry,

Sorry. I appear to be a bit dislexic today. Ok. For XMLToCursor(), trying including the full path to the filename for xmltest.xml.

>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?
Travis Vandersypen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform