Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is best way to import XML file created by XLMSpy
Message
From
12/01/2006 15:53:32
 
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01086161
Message ID:
01086303
Views:
33
Doug,

>I have been provided a hierarchical XML file created by Chase Insurance using XMLSpy. They have changed from a previous NAILBA file format. We now need to import data from the XML file - but have had no luck using XMLTOCURSOR (didn't import all data) or XMLAdapter (errors encountered). Can it be imported directly into SQL Server or VFP? Our preference would be to import into a VFP cursor, but we are at the point where importing into anything is better than nothing. Thanks for any help you can provide.

As you found out, XMLTOCURSOR cannot handle hierarchical XML structures. XMLAdapter can in most cases, but not necessarily automatically without a few "tweaks."

Does your XML have an inline schema section at the top or an external XSD schema file? What is the error you get from XMLAdapter (maybe "Schema too complex"?)

If you email me the XML and schema (if you have one) I'll take a look tonight and let you know what to do so XMLAdapter can handle it.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform