0

I am trying to generate a C# class from the following ReqIF XSD file.

I have tried with xsd.exe which failed and now also with xsd2code which fails with the following error message (translation: reference to undeclared attribute group):

Xsd2Code Version 3.4.0.32990
Code generation utility from XML schema files.

Error: Verweis auf nicht deklarierte Attributgruppe http://www.w3.org/1999/xhtml:xhtml.style.attrib.
    SubType: Unspecified

    Rule:

I suppose the xsd file is not 100% correct. I tried to get some information about the xsd format, but with my limited knowledge I was not able to solve the issue. Does somebody have an idea what could be wrong here or how I could proceed?

Thanks!

4

1 回答 1

0

我能够在 Windows 上使用链接文件和以下命令行生成 java 代码(确保文件都在同一个目录中,以使您的生活更轻松):

注意:我的电脑花了大约 15 分钟才通过解析阶段。我以为它被锁起来了,但是当我回来时,我拿了一些咖啡并感到惊喜。

"<path_to_xjc.exe>" "<path_to_reqif.xsd>" -b "<path_to_linked_xjb_file>" -extension -p <the.package.name.you.want.to.generate.to>

链接到我用来生成的文件

于 2016-04-01T13:41:46.717 回答