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.