EXTERNAL: Re: [xsd-users] XSD compilation fails: "Global element declared more than once"

Chalk, Andrew J andrew.j.chalk at lmco.com
Wed Jan 4 18:10:00 EST 2017


Thanks for the new version.

Update: Same behavior. All of the xsd files that failed to compile in the prior versions still fail. Those that succeeded, succeed. 

Every XSD.EXE error reported when MS Build output is set to "Diagnostic" appears to be the result of the inability of XSD.EXE to handle multiple (identical) declarations. Viz:

 C:\Users\n32839\Documents\Visual Studio 2012\Projects\XSD2CPP\CodeSynthesisXSD\TestCodeSynthesisXSD.1>xsd.exe cxx-tree --output-dir "." --hxx-suffix ".hxx" --cxx-suffix ".cxx" --ixx-suffix ".ixx" --fwd-suffix "-fwd.hxx"    supportrequest.xsd  (TaskId:119)
1>supportrequest.xsd:33:38: error: global type 'complexType:SupportRequest' declared more than once or also declared as simpleType (TaskId:119)
1>supportrequest.xsd:81:43: error: global type 'simpleType:SupportRequestType' declared more than once or also declared as complexType (TaskId:119)
1>supportrequest.xsd:94:44: error: global type 'simpleType:SupportRequestState' declared more than once or also declared as complexType (TaskId:119)

Many thanks for your help.

- A



-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: Wednesday, January 04, 2017 8:06 AM
To: Chalk, Andrew J (US N-AMERICAN CYBERSYSTEMS) <andrew.j.chalk at lmco.com>
Cc: xsd-users at codesynthesis.com
Subject: EXTERNAL: Re: [xsd-users] XSD compilation fails: "Global element declared more than once"

Hi Andrew,

Chalk, Andrew J <andrew.j.chalk at lmco.com> writes:

> Is there a fix yet?

I believe this has been fixed. Can you try the a10 pre-release?

http://codesynthesis.com/~boris/tmp/xsd/xsd-4.1.0.a10-i686-windows.zip

Boris



More information about the xsd-users mailing list