# FpML class generation gives error

I am creating classes out of 5.1 FPML specification but I get following error.

Group 'Events.model' from targetNamespace='http://www.fpml.org/FpML-5/confirmation'
has invalid definition: Circular group reference.


How can I get rid of this?

-
Could you please update clean up your question and give more information about what you're doing (code, commands) with what software, etc? I'm pretty sure that in its current form your question will not get a satisfactory answer. –  Bob Jansen Aug 6 '12 at 22:07

## 2 Answers

This is clearly StackOverflow question related to technical aspects of XSD. Please see “XSD.exe and Circular Group references”, "removing circular group references from xsd schema file" and "xsd.exe fails to handle circular group references"

-
It appears I was wrong ;) –  Bob Jansen Aug 7 '12 at 10:02

Are you using xds.exe to autogenerate the class for deserializing this fpml. In my project I tried the same and had this issue. In the end I wrote my own class from scratch for this. a similar approach is mentioned here and is worth looking at. Else if you post your sample FPML I can try to repro and give you a class definition in C# / C++.

-