title: Element or attribute do not match QName production
body: <p>I have a schema that i have "flattened" using  XML Editor. After i flatten it i get a validation error. What can i do to fix it?</p>
  
  <p>Error Message:</p>
  
  <blockquote>
    <p>F [Xerces] Element or attribute do not
    match QName production:
    QName::=(NCName':')?NCName.</p>
  </blockquote>
  
  <p>code:</p>
  
  <pre><code>&lt;xs:import namespace="http://www.opengis.net/gml"
      schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"
      xmlns:="http://www.opengis.net/gml/3.1.1" /&gt;
  &lt;xs:annotation xmlns:="http://www.opengis.net/sps/1.0"&gt;
      &lt;xs:documentation&gt;
          &lt;copyright&gt;                 SPS is an OGC Standard.                 Copyright (c)
              2007,2010 Open Geospatial Consortium, Inc. All Rights Reserved.                 To
              obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
          &lt;/copyright&gt;
      &lt;/xs:documentation&gt;
  &lt;/xs:annotation&gt;
  </code></pre>
  
  <p>Here's a screenshot that might better illustrate my error:
  <img src="https://i.stack.imgur.com/L2wDX.jpg" alt="enter image description here"></p>
  
  <p>EDIT:</p>
  
  <blockquote>
    <p>Remove the colon somehow. What exactly
    does this "flattening" supposed to do?</p>
  </blockquote>
  
  <p>The flattening of the xsd takes an <a href="http://schemas.opengis.net/sps/1.0.0/spsAll.xsd" rel="nofollow noreferrer">xsd</a> with a lot of includes and puts it all into one file (without any includes).</p>