Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XMLTOCURSOR command
Message
De
08/10/2007 12:39:41
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
XMLTOCURSOR command
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01259486
Message ID:
01259486
Vues:
104
First of all, I am using VFP 7.

I have a simple XML file:
<?xml version="1.0" encoding="UTF-8"?>
<results xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="c:\vfp\ka\runtime\results.xsd">
	<result>Test</result>
</results>
Here is the schema:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:element name="results">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="result" type="xs:string"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>
I am trying to import the XML file into a cursor with the following command (assume the text of the XML file is already in the variable cText):
XMLTOCURSOR(cText,"TEST")
I get the error: Unable to infer XML schema.

What do I need to do to make this work? Thanks!!!
Very fitting: http://xkcd.com/386/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform