LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-18-2006, 03:42 PM   #1
Omni
Member
 
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
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Think "namespaces":
http://www.w3.org/TR/1999/REC-xml-names-19990114/
 
Old 09-20-2006, 10:48 AM   #3
Omni
Member
 
Registered: Sep 2003
Posts: 54

Original Poster
Rep: Reputation: 15
Yes, I came to that realization real quick. I have been using http://www.w3.org/TR/xmlschema-0/ 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!!!!"
 
  


Reply


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


All times are GMT -5. The time now is 12:34 PM.

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