>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