title: Removing circular group references from xsd schema files
body: <p>Is there a way i can automatically remove all <strong>circular group references</strong> from an XSD schema?</p>
  
  <p>I'm trying to run svcutil.exe and xsd.exe on an OGC schema and get the following error:</p>
  
  <blockquote>
    <p>Error: Group 'AnyScalar' from
    targetNamespace='http://www.opengis.net/swe/1.0'
    has invalid definition: Circular group
    reference.</p>
  </blockquote>
  
  <p>The schema is too big to go through it manually.</p>
  
  <p>This is the schema i'm using:
  <a href="http://schemas.opengis.net/sps/1.0.0/spsAll.xsd" rel="nofollow">http://schemas.opengis.net/sps/1.0.0/spsAll.xsd</a></p>