Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSXML2.DOMDocumnet
Message
 
À
02/07/2002 10:48:04
Fabian Borghi
Xenon Information Technology
Itaparica, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00674464
Message ID:
00674610
Vues:
22
Hi Fabian,

If your schema was generated by the VFP 7.0 CURSORTOXML() function, you are able to easily create cursors based on the structure of these schemas, but there are some details you have to take into consideration:

You will have to specify the namespace "http://www.w3.org/2001/XMLSchema-instance" and the attribute "noNamespaceSchemaLocation" belonging to this namespace in the root element of the XML document. This attribute indicates where the schema file that will be used to validate the document and define the structure of the cursor is located.

Please, consider the following document
<?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
<VFPData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="d:\a\Clientes.xsd">
	<clientes>
		<id>1</id>
		<nome>Fabio</nome>
	</clientes>
	<clientes>
		<id>2</id>
		<nome>Monteiro</nome>
	</clientes>
	<clientes>
		<id>3</id>
		<nome>Vazquez</nome>
	</clientes>
</VFPData>
HTH.
-----
Fabio Vazquez
http://www.fabiovazquez.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform