Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

The table (sequence) cannot be the child table to itself in nestedrelations.

Question posted by: mathieu (Guest) on July 3rd, 2008 12:35 PM
Hi,

I am trying to generate xsd from xml, but all tools I have tried so
far returns:

"The table (sequence) cannot be the child table to itself in nested
relations."

Is this something you can do in xml:

<?xml version="1.0"?>
<doc>
<element key="1"/>
<sequence key="2">
<element key="3"/>
<sequence key="4">
<element key="1"/>
<element key="5"/>
</sequence>
</sequence>
</doc>

Thanks !
-Mathieu
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
szomiz's Avatar
szomiz
Guest
n/a Posts
July 3rd, 2008
05:45 PM
#2

Re: The table (sequence) cannot be the child table to itself in nestedrelations.
<?xml version="1.0"?>
Quote:
Originally Posted by
<doc>
<element key="1"/>
<sequence key="2">
<element key="3"/>
<sequence key="4">


<xs:element name="doc" type="levelDef"/>

<xs:complexType name="levelDef">
<xs:sequence>
<xs:element name="element" ...>
<!-- minOccurs: 0 ? maxOccurs: unbounded ? -->
<xs:element name="sequence" type="levelDef" minOccurs="0" ...>
<!-- maxOccurs: 1? maxOccurs: unbounded ?-->

sz.



 
Not the answer you were looking for? Post your question . . .
183,968 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors