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
XML Schema Library Manager - Error
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 139
- Joined: Fri Apr 11, 2008 1:02 pm
-
- Participant
- Posts: 40
- Joined: Thu Apr 17, 2008 1:52 pm
- Location: Huntsville, AL
-
- Premium Member
- Posts: 139
- Joined: Fri Apr 11, 2008 1:02 pm
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
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>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
-
- Premium Member
- Posts: 139
- Joined: Fri Apr 11, 2008 1:02 pm
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
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>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
-
- Premium Member
- Posts: 139
- Joined: Fri Apr 11, 2008 1:02 pm
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
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
![Smile :)](./images/smilies/icon_smile.gif)
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
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
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>