Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XmlToCursor() to ignore the XSD
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
XmlToCursor() to ignore the XSD
Divers
Thread ID:
01673054
Message ID:
01673054
Vues:
73
Hi,

Is it possible to make the VFP function XMLTOCURSOR() to ignore the XSD file in the .XML?

I have a case where many XML files (not used by VFP but by a .NET application) have the XSD. Here is an example of a top of such XML file:
<?xml version="1.0" encoding="utf-8" ?>
<EmailList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xsi:noNamespaceSchemaLocation="EmailList.xsd" >
	<Contact>
		<FirstName>John</FirstName>
What happens is .NET has not problem that the XML file references an XSD file but the EmailList.xsd does not exit. .NET opens this XML and converts to dataset without any issues.
But when I try to use this XML from VFP, I get an error. One option for me is to manually remove the reference to the XSD file from each customer. Some work.
But if there is a way to make the VFP function ignore the reference to XSD, it would be better.

TIA
"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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform