StackOverFlowException when generating C # code from xsd using xsd.exe (VS2010)

I am trying to generate C # code from an XML schema using xsd.exe with Visual Studio RC1 (version 10.0.30128.1), but getting the following error:

C: \ Development> xsd CR2008Schema.xsd / classes Microsoft (R) Xml Schemas / DataTypes Support [Microsoft (R) .NET Framework, version 4.0.30128.1] Copyright (C) Microsoft Corporation. All rights reserved

The process terminates due to a StackOverflowException.

xsd http://www.businessobjects.com/products/xml/CR2008Schema.xsd

Any help was appreciated.

Thank,

Staffan

+3
source share
2 answers

, , , Group Group:

<!--    Group   -->
<xsd:complexType name="Group">
  <xsd:sequence>
    <xsd:element name="GroupHeader" type="HeaderFooter" minOccurs="0"/>
      <xsd:choice>
        <xsd:element name="Details" type="Details" minOccurs="0" maxOccurs="unbounded"/>
        <xsd:element name="Group" type="Group" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:choice>
    <xsd:element name="GroupFooter" type="HeaderFooter" minOccurs="0"/>
  </xsd:sequence>
  <xsd:attribute name="Level" type="xsd:integer" use="required"/>
</xsd:complexType>

xsd.exe ...

+4

Oded-, CrystalReport , . Details Details SubReport, Subreport, CrystalReport, Details Details ..

+3

Source: https://habr.com/ru/post/1745089/


All Articles