Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLTOCURSOR() how to I use and XSD file
Message
From
24/03/2003 17:52:09
Bob Tracy
Independent Consultant
Driftwood, Texas, United States
 
 
To
24/03/2003 11:51:45
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00769304
Message ID:
00769511
Views:
36
This message has been marked as a message which has helped to the initial question of the thread.
Margaret,

Here is some sample VFP code to validate just using the MSXML parser. You must use MSXML version 4:
LOCAL oDoc AS MSXML2.DOMDocument
LOCAL oCache AS MSXML2.XMLSchemaCache
oDoc = NEWOBJECT('MSXML2.DOMDocument.4.0')
oCache = NEWOBJECT('MSXML2.XMLSchemaCache.4.0')
oCache.add('http://tempuri.org/ConfigSchema.xsd','c:\development\schemabuilder\ConfigSchema.xsd')
oDoc.async = .F.
oDoc.schemas = oCache
llOK = oDoc.load('schemaconfig.xml')
lcError = oDoc.validate()
IF lcError.errorCode <> 0
	? lcError.reason
ENDIF
HTH
Bob Tracy

Never engage in a battle of wits if you're only half armed.
Previous
Reply
Map
View

Click here to load this message in the networking platform