المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Creating Dataset from Xml



C# Programming
01-21-2010, 01:50 PM
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:

</span span class="code-SummaryComment"version/spanspan class="code-keyword"="/spanspan class="code-keyword"1.0"/span span class="code-SummaryComment"encoding/spanspan class="code-keyword"="/spanspan class="code-keyword"UTF-8"/spanspan class="code-SummaryComment"?/spanspan class="code-SummaryComment">