|
-
June 23rd, 2011, 05:19 AM
#1
Error when opening XSD file in XML spy
hi,
I have an XSD file and tried to open that MasterFile.xsd using XML spy and it throws error that the
Included/imported schema file "c:\dir1\CodeCntr.xsd" has a different target namespace .
Expected "http://www.coderEx1.com/schemas/2011/07.sm"
Found "http://www.coderEx1.com/schemas/2004/06.sm"
In my MasterFile.xsd I have a namespace declared
xmlns:grpz = "http://www.coderEx1.com/schemas/2011/07.sm"
and in the CodeCntr.xsd I have
xmlns="http://www.coderEx1.com/schemas/2004/06.sm"
how do I resolve this? .
Thanks
SL
-
June 25th, 2011, 12:17 AM
#2
Re: Error when opening XSD file in XML spy
do you also have the targetNamespace attribute defined in your schemas?
-
June 25th, 2011, 12:18 AM
#3
Re: Error when opening XSD file in XML spy
 Originally Posted by SmartLearner
hi,
I have an XSD file and tried to open that MasterFile.xsd using XML spy and it throws error that the
Included/imported schema file "c:\dir1\CodeCntr.xsd" has a different target namespace .
Expected "http://www.coderEx1.com/schemas/2011/07.sm"
Found "http://www.coderEx1.com/schemas/2004/06.sm"
In my MasterFile.xsd I have a namespace declared
xmlns:grpz = "http://www.coderEx1.com/schemas/2011/07.sm"
and in the CodeCntr.xsd I have
xmlns="http://www.coderEx1.com/schemas/2004/06.sm"
how do I resolve this? .
Thanks
SL
CodeCntr.xsd defines the "default namespace" this is not the same as target namespace.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|