Click here to Skip to main content
15,898,538 members
Home / Discussions / C#
   

C#

 
GeneralRe: Opening a file Pin
Darrall20-Jan-10 7:43
Darrall20-Jan-10 7:43 
AnswerRe: Opening a file Pin
Abhinav S20-Jan-10 17:55
Abhinav S20-Jan-10 17:55 
QuestionInsert image Pin
farokhian20-Jan-10 7:02
farokhian20-Jan-10 7:02 
AnswerRe: Insert image Pin
loyal ginger20-Jan-10 7:31
loyal ginger20-Jan-10 7:31 
GeneralRe: Insert image Pin
farokhian20-Jan-10 9:30
farokhian20-Jan-10 9:30 
GeneralRe: Insert image Pin
loyal ginger20-Jan-10 10:09
loyal ginger20-Jan-10 10:09 
QuestionConnection to SQL Server on the remote computer Pin
Ievgeniia Zhovtobryukh20-Jan-10 6:09
Ievgeniia Zhovtobryukh20-Jan-10 6:09 
QuestionCreating Dataset from Xml Pin
Fayu20-Jan-10 4:50
Fayu20-Jan-10 4:50 
Hello all,

I am having a problem when trying to load a dataset with xml using ReadXml or ReadXmlSchema methods. The error I get is "DataSet doesn't allow the circular reference in the ComplexType named 'EDElementType'". The xml is below.

I think it is due to the fact that the complex type EDElementType contains a element named 'children' of type EDElementType which would cause a 'circular reference'. Any ideas how I can fix this?

Thanks in advance.


Xml:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cbe="http://www.abccorp.com/cbe" targetNamespace="http://www.abccorp.com/cbe" version="1.0.1" elementFormDefault="qualified">
  <xsd:complexType name="CBEType">
    <xsd:sequence>
      <xsd:element name="edElements" type="cbe:EDElementType" minOccurs="0" maxOccurs="unbounded" />
    </xsd:sequence>
  </xsd:complexType>
  <xsd:element name="CBE" type="cbe:CBEType" />

<xsd:complexType name="EDElementType">
    <xsd:sequence>
      <xsd:choice>
        <xsd:element name="values" minOccurs="1" maxOccurs="unbounded">
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:maxLength value="1024"></xsd:maxLength>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="hexValue" type="xsd:hexBinary" minOccurs="1" maxOccurs="1" />

      </xsd:choice>
      <xsd:element name="children" type="cbe:EDElementType" minOccurs="0" maxOccurs="unbounded" />
    </xsd:sequence>
  </xsd:complexType>

</xsd:schema>

AnswerRe: Creating Dataset from Xml Pin
Ennis Ray Lynch, Jr.20-Jan-10 10:17
Ennis Ray Lynch, Jr.20-Jan-10 10:17 
AnswerRe: Creating Dataset from Xml Pin
Fayu21-Jan-10 3:14
Fayu21-Jan-10 3:14 
QuestionDeleted controls still appear in InitializeComponents() Pin
yeah100020-Jan-10 4:49
yeah100020-Jan-10 4:49 
AnswerRe: Deleted controls still appear in InitializeComponents() Pin
Rick Shaub20-Jan-10 5:57
Rick Shaub20-Jan-10 5:57 
GeneralRe: Deleted controls still appear in InitializeComponents() Pin
yeah100020-Jan-10 21:49
yeah100020-Jan-10 21:49 
GeneralRe: Deleted controls still appear in InitializeComponents() Pin
yeah10004-Feb-10 2:15
yeah10004-Feb-10 2:15 
GeneralRe: Deleted controls still appear in InitializeComponents() Pin
yeah10008-Feb-10 2:28
yeah10008-Feb-10 2:28 
QuestionComboBox.Items.Clear() not working -- Totally Revised Question Pin
Xpnctoc20-Jan-10 4:15
Xpnctoc20-Jan-10 4:15 
AnswerRe: ComboBox.Items.Clear() not working -- Totally Revised Question Pin
Xpnctoc20-Jan-10 4:20
Xpnctoc20-Jan-10 4:20 
AnswerRe: ComboBox.Items.Clear() not working -- Totally Revised Question Pin
Dan Mos20-Jan-10 4:53
Dan Mos20-Jan-10 4:53 
AnswerRe: ComboBox.Items.Clear() not working -- Totally Revised Question Pin
Covean20-Jan-10 5:02
Covean20-Jan-10 5:02 
GeneralRe: ComboBox.Items.Clear() not working -- Totally Revised Question Pin
Xpnctoc20-Jan-10 5:19
Xpnctoc20-Jan-10 5:19 
GeneralRe: ComboBox.Items.Clear() not working -- Totally Revised Question Pin
Covean20-Jan-10 5:27
Covean20-Jan-10 5:27 
GeneralRe: ComboBox.Items.Clear() not working -- Totally Revised Question Pin
DaveyM6920-Jan-10 7:55
professionalDaveyM6920-Jan-10 7:55 
GeneralRe: ComboBox.Items.Clear() not working -- Totally Revised Question Pin
Covean20-Jan-10 21:56
Covean20-Jan-10 21:56 
Questionhow to import a video in C # .net? and what is its api?? Pin
rabia javeed20-Jan-10 3:07
rabia javeed20-Jan-10 3:07 
AnswerRe: how to import a video in C # .net? and what is its api?? Pin
Pete O'Hanlon20-Jan-10 3:25
mvePete O'Hanlon20-Jan-10 3:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.