-
Problem converting xsd to dataset
Hello all
I am having a problem within VS.Net. In trying to preview a schema I get a
"Duplicated Declaration" error for a given element declaration. But in
fact, there is no duplication.
If I remove the declaration...I get a missing declaration error, when I
restore it I get a duplicate declaration. Maybe I'm missing something here
that someone can explain. It just couldn't be a bug in VS.Net...could it!
:-?
Ibrahim
The element is declared as:
<xsd:element name="SupportingInformation" type="xsd:string" />
The elemant is used twice:
<xsd:element name="CompetencyEvidence" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="EvidenceId" minOccurs="0">
<xsd:complexType>
<xsd:attributeGroup ref="id" />
</xsd:complexType>
</xsd:element>
<xsd:choice>
<xsd:element ref="NumericValue" />
<xsd:element ref="StringValue" />
</xsd:choice>
<xsd:element ref="SupportingInformation" minOccurs="0" maxOccurs="unbounded"
/>
</xsd:sequence>
<xsd:attribute name="dateOfIncident" type="xsd:dateTime" />
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="typeDescription" type="xsd:string" />
<xsd:attribute name="expirationDate" type="xsd:dateTime" />
<xsd:attribute name="typeId" type="xsd:string" />
<xsd:attribute name="required" type="xsd:boolean" default="false" />
<xsd:attribute name="lastUsed" type="xsd:dateTime" />
</xsd:complexType>
</xsd:element>
and
<xsd:element name="CompetencyWeight" minOccurs="0" maxOccurs="2">
<xsd:complexType>
<xsd:sequence>
<xsd:choice>
<xsd:element ref="NumericValue" />
<xsd:element ref="StringValue" />
</xsd:choice>
<xsd:element ref="SupportingInformation" minOccurs="0" maxOccurs="unbounded"
/>
</xsd:sequence>
<xsd:attribute name="type" default="skillLevel">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="levelOfInterest" />
<xsd:enumeration value="skillLevel" />
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|