Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-18-2006, 03:42 PM   #1
Registered: Sep 2003
Posts: 54

Rep: Reputation: 15
XML Schema - redifinition of tags

Hi there,

I have three Schema files, One, Two, and Three. One includes Two and Three with the <xs:include ...> elements. Each one has simple elements defined X, Y, and Z.

My Xerces parser is throwing back errors such as "Global element:'X' declared more than once". Now I'm sure I shouldn't be defining X, Y, or Z in One, because they are defined in Two and Three. But can Two and Three each define X, Y, and Z? My initial tests say no, but I can also be an idot. W3Schools isn't clear on the subject, and the Schema standards themselves...

Is there a simple resolution to this? Would a simplified example help?
Old 09-19-2006, 05:44 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Think "namespaces":
Old 09-20-2006, 10:48 AM   #3
Registered: Sep 2003
Posts: 54

Original Poster
Rep: Reputation: 15
Yes, I came to that realization real quick. I have been using for my needs. I was initially banging my head off this because my boss suggested I didn't need to make anything complex enough to use namespaces.

To him I say "HAAAAAA!!!!"


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help finding an XML Schema validator Omni Programming 2 09-11-2006 03:10 PM
Need help to strip XML & XSL tags from multiple files dfrechet Programming 9 10-12-2005 06:52 AM
Remove XML style tags using C kuronai Programming 8 11-12-2004 12:27 AM
Parsing XML tags with php, can't get attributes of a tag jimieee Programming 1 05-05-2004 10:32 AM
XML Schema complexType eric.r.turner Programming 1 12-28-2003 04:01 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration