Search

xsd.exe fails with COLLADA schema. Prints circular reference problem... by Hwangbo Hoon

Closed
as Fixed Help for as Fixed

5
0
Sign in
to vote
Type: Bug
ID: 289668
Opened: 7/30/2007 6:44:44 AM
Access Restriction: Public
0
Workaround(s)
2
User(s) can reproduce this bug
xsd.exe cannot generates classses with COLLADA schema. The schema has circular group reference. xsd.exe prints circular reference is not allowed.

This issue introduced before here:
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=229705

And discussed in here:
https://collada.org/public_forum/viewtopic.php?t=556

You can download the schema and specs from here:
http://www.khronos.org/collada/
http://www.khronos.org/cgi-bin/fetch/fetch.cgi?collada_schema_1_4

I will include the file if possible.
Please try to download the file from above url.

*I'm using DotNET 2.0 SDK.
Details (expand)
Product Language
English

Version

Visual C#, C++, J#, or Visual Basic Express Service Pack 1
Operating System
Windows XP Professional
Operating System Language
English
Steps to Reproduce
download schema file:
http://www.khronos.org/cgi-bin/fetch/fetch.cgi?collada_schema_1_4

run SDK command prompt.
move to the directory contains the schema file.
run xsd.exe to created classes like this:

xsd.exe collada_schema_1_4.xsd /c

command fails and you can see error.


Actual Results
prints error that circular reference is not allowed.
Expected Results
Geenrated class.
TAP Code (if applicable)
 
      You can indicate your satisfaction with how Microsoft handled this issue by completing this quick 3 question survey. [Details]

 

File Attachments
File Name Submitted By Submitted On File Size  
collada_schema_1_4.xsd (restricted) 7/30/2007 -
Sign in to post a comment.
Posted by Microsoft on 11/12/2007 at 7:20 PM
Hello,

I have looked into this issue again and was able to repro it with the same results you were experiencing.

To workaround this issue, you can preprocess the schema to remove group references.

To view our current support for schema groups, please view the following doc: http://msdn2.microsoft.com/en-us/library/d79t4w33.aspx

Thanks,

Erica Mohler
Posted by Microsoft on 8/21/2007 at 6:35 PM
Hello,

I have not seen a response from you regarding the error message you are recieving, therefore i am closing out this issue.

If you are still experiencing this problem, please open a new Connect bug and the Feature team will reinvestigate this issue.

Thanks,

Erica Mohler
Microsoft Program Manager
Posted by Microsoft on 8/13/2007 at 4:09 PM
Hello,

Can you please post the error message you are recieving.

I just ran xsd.exe on the attached schema and got the following error "Error: can only generate one of the classes or datasets". Is this the same results you are seeing?

Thanks,

Erica Mohler
Microsoft Program Manager
Posted by Microsoft on 7/30/2007 at 6:11 PM
Thanks for your feedback. We have reproduced this bug on Visual Studio 2008 Beta 2, and we are sending this bug to the appropriate group within the VisualStudio Product Team for triage and resolution.

Thank you,
Visual Studio Product Team.
Posted by Microsoft on 7/30/2007 at 5:31 PM
Thank you for your feedback. We are currently investigating. If this issue is urgent, please call support directly (see http://support.microsoft.com).

Thank you,
Visual Studio Product Team
Sign in to post a workaround.