Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML Adapter and xsd file
Message
From
31/08/2004 10:18:54
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
30/08/2004 20:29:32
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00937230
Message ID:
00938010
Views:
20
Thanks Aleksey. Thanks for sticking with me. I was looking for a property not a parameter. It works now.


>Hi James,
>
>You are still not using the cSchemaLocation parameter (this is different from XMLSchemaLocation property).
>
>Thanks,
>Aleksey.
>
>>UPDATE:
>>I tested loading the xml with the xsd file in another directory and it seemed to work fine. Maybe the path is not an issue?
>>
>>Aleksey,
>>
>>Here is the code that just tried. I think it follows your example.
>>
>>
>>LOCAL lcXml, oxml
>>CREATE CURSOR test1 (junk c(10))
>>INSERT INTO test1 (junk) values("junk")
>>INSERT INTO test1 (junk) values("junk1")
>>INSERT INTO test1 (junk) values("junk2")
>>
>>oxml = CREATEOBJECT("xmladapter")
>>oxml.addTableSchema(ALIAS())
>>oxml.XMLSchemaLocation="junk.xsd"
>>oxml.toxml("lcXml")
>>?STRTOFILE(lcXml,"test1.xml")
>>MODIFY FILE test1.xml nowait
>>MODIFY FILE junk.xsd NOWAIT
>>
>>
>>
>>Thanks for your help.
Previous
Reply
Map
View

Click here to load this message in the networking platform