Page 1 of 1

xsd import validation error

Posted: Mon Apr 21, 2014 3:25 pm
by betterthanever
Greetings,
I am trying to import an xsd using Schema Library Manager, once the the file is imported. validation fails with the below error message. I appreciate any inputs on this.
src-resolve: Cannot resolve the name 'com:HeaderMsgType' to a(n) 'type definition' component.
src-resolve: Cannot resolve the name 'pdemo:ProviderType' to a(n) 'type definition' component.

Thanks.

Posted: Mon Apr 21, 2014 7:26 pm
by eostic
Hard to say, but start with validating the xsd using something like Oxygen XML, or xmlSpy or other xsd validation and design tools. It's possible that the xsd collection you are importing has issues.

Be sure also that you have "all" of the xsd.....very often there are many xsd's that make up a single larger xsd ---- and often thay are stored and imported from one single .zip file.

Ernie

Posted: Mon Apr 21, 2014 8:09 pm
by betterthanever
It gets validated without any issues with XmlSpy though.

Posted: Tue Apr 22, 2014 1:46 pm
by yugee
from the error message, it looks like the validation is not able to find the HeaderMsgType and ProviderType. If these are two external references (meaning, if your original xsd is referring to another xsd) make sure you import these xsds as well. Below is the example:
--This is just an element
<xsd:element minOccurs="0" name="addInfo" type="xsd:boolean" />
--This is referrring to another xsd
<xsd:element minOccurs="0" name="assignment" type="bons0:Assignment" maxOccurs="unbounded" />

Posted: Tue Apr 22, 2014 2:29 pm
by betterthanever
thanks for the response. i will take a look on external references.

Posted: Tue Apr 22, 2014 2:45 pm
by eostic
look for import and include statements in your xsd....make sure you have those...often they are all together in a single sub directory or single zip file