English 中文(简体)
StackOverFlowException在使用xsd.exe生产C#代码时(VS2010)
原标题:StackOverFlowException when generating C# code from xsd using xsd.exe (VS2010)
  • 时间:2010-05-12 10:42:13
  •  标签:
  • c#
  • xsd.exe

我正试图从XML扫描仪中产生C#代码,配备有视力的RC-1(第10.0.30128.1章)的XML扫描仪,但发现有微小的错误:

C:Development>xsd CR2008Schema.xsd /classes Microsoft (R) Xml Schemas/DataTypes support utility [Microsoft (R) .NET Framework, Version 4.0.30128.1] Copyright (C) Microsoft Corporation. All rights reser

由于StackOverflowException,程序终止。

The xsd is

感谢任何帮助。

感谢

工作人员

问题回答

这可能是因为<代码>组界定了<代码>>组的收集:

<!--    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 >正在形成一种无限的循环。

除Oded的回答外,在Crystal报告类型中还有类似的但更多的 comp。 类型细节的详细内容包含的是《分报告》中属于“分报告”类型的内容,该内容从“Crystal报告”中继承,其中含有“类型细节”的详细内容。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签