XML Schema Library Manager - Error

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
Maximus_Jack
Premium Member
Premium Member
Posts: 139
Joined: Fri Apr 11, 2008 1:02 pm

XML Schema Library Manager - Error

Post by Maximus_Jack »

Hi
I tired to import few xsd files with the schema library manager , after it has been imported and validated, i'm seeing a lot of error as
"sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of ',Classification'."

I tried searching, but couldn't find any solution, any insights on this?

thanks
MJ
josh.guffey
Participant
Posts: 40
Joined: Thu Apr 17, 2008 1:52 pm
Location: Huntsville, AL

Post by josh.guffey »

Consolidate the xsd files into a zip file and import the zip file as a "schema bundle". This should fix the issue assuming your xsd files have correct syntax.
Maximus_Jack
Premium Member
Premium Member
Posts: 139
Joined: Fri Apr 11, 2008 1:02 pm

Post by Maximus_Jack »

Hi,
Thanks for your response

Tried that, but still facing the same error

thanks
MJ
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

Hard to say --- as the previous poster suggests, sometimes strange errors in the library manager are simply because not "all" the required XSD's have been imported. Be sure you have all the parts and pieces.

Quite often, however, the problem is that the schema is indeed invalid. You might want to try running it thru xmlSpy or Oxygen XML or other XML Schema Design tools or various and sundry xsd validation web sites that you can find.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Maximus_Jack
Premium Member
Premium Member
Posts: 139
Joined: Fri Apr 11, 2008 1:02 pm

Post by Maximus_Jack »

Hi
i'm sure, i have imported the entire list, is there any other way to approach this issue?

thanks
MJ
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Work with whomever gave you the xsd, it sounds like it may actually be invalid.
-craig

"You can never have too many knives" -- Logan Nine Fingers
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

I can only guess at the moment, but it would sound like there might be conflicting namespaces among the documents for some of the global elements? ...or that the global elements are repeated? I haven't encountered this so I can't talk about a pattern, but in huge zip files I've imported, one generally sees a single xsd in there with the "global" things.....each of the other xsd's reference that one for such items that go across all of them.

Maybe this collection is repeating things that should otherwise be in a separate xsd that is included by all the others.... ?

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Maximus_Jack
Premium Member
Premium Member
Posts: 139
Joined: Fri Apr 11, 2008 1:02 pm

Post by Maximus_Jack »

Hi All
I think i have figured it with some trial and error, before building a XML schema library, i think the first thing to do is to identify the XML schema flow,
i painstakingly found the schema flow of all the files and i created separate library for each particular tree, seems like a XML library is in place :) ,

how i found the XML schema flow is, i copied all the xsd's to unix and grep'ed for "Include" / "Import" in the xsd's, and i found the flow, is there any other tool out there to find the XML schema flow?

thanks
MJ
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

There may be some good web-ware free tools out there......I use Oxygen XML, which is very complete, and I know folks who speak highly of XML Spy...not sure if either can figure out the problem you ran into, but they likely would be able to identify issues with conflicting elements.

Ernie
Ernie Ostic

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