Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XML-Schema: interrelationship between elements

Reply
Thread Tools

XML-Schema: interrelationship between elements

 
 
tom@eas.iis.fraunhofer.de
Guest
Posts: n/a
 
      08-23-2006
Hello!

A file file1 contains the following:

<element name = "A">
<complexType>
<sequence>
<element ref="B"/>
...
</sequence>
</complexType>
</element>

and another file file2

<element name = "B">
<complexType>
<sequence>
<element ref="A"/>
...
</sequence>
</complexType>
</element>

It is necessary to include file1 in file2 and file2 in file1. But now,
the validator complains, that both elements A and B already have been
declared. I found several helps in forums about recursion concerning
one attribute / element. But they did not help me in the special case.
Is it possible to create such a xml schema at all? If, how?

Regards, Tom

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSLT: iterating all child elements and accessing homonymous childrenin sibling elements Gerald Aichholzer XML 2 06-27-2006 03:46 PM
How do I allow both elements or No elements Billy XML 4 09-12-2005 08:29 AM
Elements within elements Jyrki Keisala XML 5 06-15-2005 04:58 PM
container elements for repeating elements ('element farms') needed? Wolfgang Lipp XML 1 01-30-2004 04:09 PM
container elements for repeating elements ('element farms') needed? Wolfgang Lipp XML 0 01-28-2004 02:50 PM



Advertisments