Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - deriving complexTypes from imported types >Thread Next - information on schemas FW: Error: "The same table (tableName) cannot be the child table in two nested relations"To: <xmlschema-dev@--.---> Date: 4/17/2004 2:32:00 PM Hello:
Since Dfg was repeated under two different elements:
1- squencia
2- seq2
And Dataset Object for .net does not identify same element under two =
different elements
So just in case dfg have no attributes or child
Elements this can be done=E2=80=A6.
Regards
Firas Darweesh
Rapid Application Developer
Lootah IT Solutions
To: xmlschema-dev@w...
Subject: Error: "The same table (tableName) cannot be the child table in =
two nested relations"
Hi, I=E2=80=99m trying to load a schema into a .net program, but =
I=E2=80=99m getting this error:
=E2=80=9CThe same table (dfg) cannot be the child table in two nested =
relations=E2=80=9D
My schema is as follows:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" =
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="teste">
<xs:annotation>
<xs:documentation>Comment describing your root =
element</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="sequencia" =
type="sequenciaType"/>
<xs:element name="seq2" =
type="sequenciaType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="sequenciaType">
<xs:sequence>
<xs:element name="teste1"/>
<xs:element name="dfg" type="xpto"/>
<xs:element name="sdfhgfgh"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="xpto">
<xs:sequence>
<xs:element name="grrr" type="xs:gYearMonth"/>
<xs:element name="lsdkf" type="xs:duration"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="comSeq">
<xs:sequence>
<xs:element name="seqPP" type="sequenciaType"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
Basically I have two elements of a complex type that on it=E2=80=99s =
turn has on element of another complex type. It is this last complex =
type that causes the error..
Is this normal? What can I do to prevent this kind of situation?
Thanks in advance
Cl=C3=A1udio Jorge Vieira Teixeira
IEETA-Instituto de Engenharia Electr=C3=B3nica e Telem=C3=A1tica de =
Aveiro
Universidade de Aveiro
Campus Universit=C3=A1rio de Santiago
3810-193 Aveiro
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
