Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLToCursor
Message
From
18/06/2010 13:51:30
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01469592
Message ID:
01469645
Views:
54
>I am trying to import an XML file into FoxPro, to ultimately convert to Excel or text. However, when I use XMLTOCURSOR, it truncates the lead 0's, since it assumes that fields with only numbers are numeric, even though some of them are used as ID fields. Although I found a workaround by using a Treeview, and converting it from there, is there an easier way to convert the XML file without losing the lead 0's?

You can create the cursor in advance, have these columns as character, then xmltocursor() to your existing cursor. That way Fox doesn't have to guess the schema, it will use yours.

I tried that only once, so YMMV.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform