xsd import validation error

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
betterthanever
Participant
Posts: 152
Joined: Tue Jan 13, 2009 8:59 am

xsd import validation error

Post 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.
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post 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
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
betterthanever
Participant
Posts: 152
Joined: Tue Jan 13, 2009 8:59 am

Post by betterthanever »

It gets validated without any issues with XmlSpy though.
yugee
Participant
Posts: 34
Joined: Fri Feb 04, 2011 5:54 pm

Post 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" />
betterthanever
Participant
Posts: 152
Joined: Tue Jan 13, 2009 8:59 am

Post by betterthanever »

thanks for the response. i will take a look on external references.
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post 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
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Post Reply