Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLTOCURSOR() function with no schema
Message
From
02/11/2005 14:45:21
 
 
To
02/11/2005 14:02:58
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01064451
Message ID:
01064674
Views:
36
As far as I can remember, no.

>Hi Tore,
>
>PMFJI. Does the cursor need to be created such that the field order is the same as in the XML file layout?
>
>Thanks
>
>Mike
>
>
>>>Hello,
>>>I am currently doing an XMLTOCURSOR() function in my application on an XML document that has no schema, and I can't add a schema to it. The problem I am having is that there is a field in there that I want to be numeric, but the values have 0's in it, therefore VFP thinks it is Logical.
>>>
>>>Is there any way I can define a structure for the XML file in my code, since it will never change? Or can I perform an XMLTOCURSOR() to an already created cursor with defined data types? I am reading the help file but I can't come up with an answer from it.
>>>
>>>Thanks in advance!
>>>
>>>MAC
>>
>>Create a cursor with the correct structure, and use the extra switches:
>>lnXmlRecords=XMLTOCURSOR(yourFile,yourCursor,512+8192)
Previous
Reply
Map
View

Click here to load this message in the networking platform