I have the attached main.xsd which imports the types.xsd. Open this in XmlSpy (or similar) and the main.xsd will validate just fine. However, if the namespace prefix ns0 is removed from the declaration then it will not validate - even though the prefix is not used anywhere.
Good:<xs:schema xmlns:ns0="http://schemas.asidua.com/CCP/IntegrationServices/2011-11-18/Data"
Bad:<xs:schema xmlns="http://schemas.asidua.com/CCP/IntegrationServices/2011-11-18/Data"
The validation error message:
"Cannot resolve declaration or definition 'ArrayOfString' in namespace 'http://schemas.asidua.com/CCP/IntegrationServices/2011-11-18/Data'"
Can anyone please explain why the prefix is required?
Good file:GoodMain.xsd Bad file:BadMain.xsd Imported types xsd:Types.xsd