Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML field lengths
Message
From
01/11/2004 21:50:52
 
 
To
01/11/2004 17:10:02
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00956743
Message ID:
00956833
Views:
8
Jim,

> I am having a problem because this is the first time I've worked with xml and VFP. I am reading an xml file into a cursor. Some of the fields are only 2 characters long. I need to know how to make the fields longer? Do I need to include a schema with the file?

You didn't say HOW you are reading the XML into the cursor, but if you are using XMLTOCURSOR, you can use XML with an embedded schema.

If, however, you are using VFP8 or above, you can use the 8192 flag on the command to indicate that the cursor name you specify is a cursor that already exists (which you first create with CREATE CURSOR to set the fields just as you want them). With this approach, you don't need a schema in the XML.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Reply
Map
View

Click here to load this message in the networking platform