posted 20 years ago
Hi All,
I am using 2 XSD files assume main.xsd and sub.xsd both are located in different folders.
main.xsd include the sub.xsd in following manner by specifying absolute path for attribute schemaLocation:
<xs:include schemaLocation="D:/Applications/XSD/pass/apiRQ.xsd"/>
which works fine for me.
But the problem is that I need to replace absolute path with relative one eg.
<xs:include schemaLocation="../../XSD/pass/apiRQ.xsd"/>
if I specify the relative path as specified above , I get following error :
Failed to read included schema document '../../XSD/pass/apiRQ.xsd'
though it works fine if I keep both the files in same folder and specify the path as follows
<xs:include schemaLocation="apiRQ.xsd"/>
Is there any workaround.
Thanks