Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a way to convert XSD to a table structure?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01025314
Message ID:
01028671
Vues:
31
Hi Dawa,

>I've something else though.
>In the following line:
>
oSomeTable=oVFPDataSet.type.contentModel.particles(0)
>I don't see contentModel in the IntelliSense list.
>

This is expected. The type property returns an object implementing ISchemaType interface, which doesn't have property contentModel (that is why this property doesn't appear in IntelliSense). However, the object implements additional interface(s), which can be determined based on ISchemaType.itemType property. In my example, this property returns 9216 (SOMITEM_COMPLEXTYPE), which means that the object also implements ISchemaComplexType interface and that interface has contentModel property. I new how the schema looked like, so I just queried the property. With unknown schema, the itemType property should be checked first before trying to access methods and properties from extended interfaces like ISchemaComplexType, etc.

>May be I'm missing something with MSXML installation. I've downloaded and installed MSXML 4.0 Service Pack 2 (Microsoft XML Core Services) from http://www.microsoft.com/downloads/details.aspx?FamilyID=3144b72b-b4f2-46da-b4b6-c5d7485f2b42&DisplayLang=en
>
>Should I download something different?

I am pretty sure I didn't have to run any additional setup program to install the help file. Anyway the MSXML download page contains a reference to online documentation in "Related Resources" section (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/b24aafc2-bf1b-4702-bf1c-b7ae3597eb0c.asp)

Thanks,
Aleksey.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform