Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLTOCURSOR() function with no schema
Message
From
02/11/2005 10:32:07
 
 
To
02/11/2005 09:36:58
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01064451
Message ID:
01064482
Views:
37
>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
Next
Reply
Map
View

Click here to load this message in the networking platform