Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3344330
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:03:25+00:00 2026-05-18T01:03:25+00:00

I am attempting to build some classes so that I can deserialise an XML

  • 0

I am attempting to build some classes so that I can deserialise an XML file created by a third party application. Luckily the developer of the 3rd party application included a schema file with their code so that the XML file can be understood.

When I use the XSD.exe tool from Visual Studio the process fails reporting the following error

“Group ‘SegGroupOrSegmentGrouping’ from targetNamespace=” has invalid definition: Circular group reference.”

Any help in how I can generate the class files in light of this error would be appreciated.
A copy of the schema file can be found here : schema file

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T01:03:26+00:00Added an answer on May 18, 2026 at 1:03 am

    I had this same problem recently,

    I was given a Schema from a third party company who were returning an xml structure from a webservice. I then wanted to deserialise the response and store the information into a database with NHibernate.

    No problem I thought I’ll just use xsd.exe and I’ll have my classes. Unfortunately this was not to be. Xsd.exe failed with exactly the same error you are getting. This is because it is unable to resolve circular references.

    I spent a good few days looking at alternatives until in the end I wrote my own class structure to the schema and was able to deserialise perfectly. The answer here is to write your own C# classes and decorate them with the appropriate attributes.

    Save yourself some time and heartache and don’t continue to try and generate the classes you need automatically in the end although time consuming the classes you write won’t make the compromises that most tools (which don’t work perfectly) will make you make.

    Took me about 3 days to write the class structure (it was large) but I ended up with a quality solution.

    One thing is certain you will not be able to use xsd.exe and most other tools I tried after googling this either did not work properly or were buggy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to build a simple method that creates an XML file from
I'm attempting to build some C++ code that requires the Windows 7.0 SDK header
Hopefully some Custom Control Designers/Builders can help I'm attempting to build my first custom
I'm attempting to build a binary package that can be run on multiple Linux
I am attempting to build a runtime license for a third party component for
I'm attempting to build some XML elements based on an XSLT string parameter. The
I'm attempting to build a Windows Service which will execute some method when a
i'm attempting to build a tiny (or perhaps not so tiny) formula that will
I'm attempting to build a Virtual Machine to develop a Django application. The OS
I am attempting to build a system that allows users to perform certain actions,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.