title: XSD Validation : Namespace causing root element to not be found
body: <p>I'm trying to a update an existing schema to use its own namespace, so I can import it into another schema later and make it clear the types being used are from the imported schema.</p>
  
  <p>I tried changing the default and targeted namespaces but it's caused the schema validation to break and hide the root node. From what I can see i've hidden my root element in another namespace but I am unsure how to configure this to get my desired result.</p>
  
  <p>Here is a basic example of what I've tried</p>
  
  <p><strong>XML</strong></p>
  
  <pre><code>&lt;Parent Id="P"&gt;
     &lt;Child Id="C"/&gt;
  &lt;/Parent&gt;
  </code></pre>
  
  <p><strong>XSD</strong></p>
  
  <pre><code>&lt;xsd:schema targetNamespace="http://myNameSpace.com" 
              xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
              xmlns="http://myNameSpace.com" 
              elementFormDefault="qualified" &gt;
  
     &lt;xsd:element name="Child"&gt;
        &lt;xsd:complexType&gt;
           &lt;xsd:attribute name="Id" /&gt;
        &lt;/xsd:complexType&gt;
     &lt;/xsd:element&gt;
  
  
     &lt;xsd:element name="Parent"&gt;
        &lt;xsd:complexType&gt;
           &lt;xsd:sequence&gt;
              &lt;xsd:element ref="Child" minOccurs="0"/&gt;
           &lt;/xsd:sequence&gt;
           &lt;xsd:attribute name="Id" /&gt;
        &lt;/xsd:complexType&gt;
     &lt;/xsd:element&gt;
  
  &lt;/xsd:schema&gt;
  </code></pre>
  
  <p><strong>Validation</strong></p>
  
  <blockquote>
    <p>Not valid.</p>
    
    <p>Error - Line 1, 19: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 19; cvc-elt.1: Cannot find the declaration of element
    'Parent'.</p>
  </blockquote>