Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XMLAdapter Load XML ignoring .xsd
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01632680
Message ID:
01632760
Vues:
58
>Hi,
>
>Is it possible to load an XML file into XMLAdapter ignoring the .xsd file defined in the .XML file? For example, the top of the XML looks like this:
>
>
><?xml version="1.0" encoding="utf-8" ?>
><EmailList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
>	xsi:noNamespaceSchemaLocation="EmailList.xsd" >
>
>
>But I want to load the XML ignoring this EmailList.xsd because XML may have elements NOT defined in the XSD file. Can it be done?
>
>TIA

I decided that since .NET does not need the .xsd file (it ignores it) I will remove the reference to the EmailList.xsd from the top section of the XML file.
Then, in VFP, I can use XMLTOCURSOR() to fill the cursor (already created) with the data from XML. This way, my code will not depend on the elements of the EmailList.xml.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform