Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSXML2.DOMDocumnet
Message
 
To
02/07/2002 10:48:04
Fabian Borghi
Xenon Information Technology
Itaparica, Brazil
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00674464
Message ID:
00674610
Views:
23
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
Previous
Reply
Map
View

Click here to load this message in the networking platform