title: XML Schema Reference and Types Not Declared
body: <p>I'm a novice to schema construction and am having problems understanding how namespace references should work.  I work with an application that is similar to BizTalk and performs a de-envelop operation on the following schemas.  I'm not sure if this is a general error, but this is the error I get:</p>
  
  <p>Error</p>
  
  <pre><code>XmlSchemaValidationException, Type 'http://Wheelhouse/Property:PropertyType' is not declared. : 
  </code></pre>
  
  <p>Property Definition</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-16"?&gt;
  &lt;xs:schema xmlns="http://Wheelhouse/Property" elementFormDefault="qualified" targetNamespace="http://Wheelhouse/Property" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;xs:element name="Property" type="PropertyType" /&gt;
    &lt;xs:complexType name="PropertyType"&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element minOccurs="0" maxOccurs="1" name="ID" /&gt;
        &lt;xs:element minOccurs="0" maxOccurs="1" name="Listing_Number" /&gt;
        &lt;xs:element minOccurs="0" maxOccurs="1" name="Status" /&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>Property List Definition</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-16"?&gt;
  &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;xs:import schemaLocation="blueintegrator://Wheelhouse/PropertyDefinition__4f3f265569d54e9fa898eba835502c6a_" namespace="http://Wheelhouse/Property" /&gt;
    &lt;xs:element xmlns="http://Wheelhouse/Property" name="Root"&gt;
      &lt;xs:complexType&gt;
        &lt;xs:sequence&gt;
          &lt;xs:element minOccurs="0" maxOccurs="unbounded" name="Property" type="PropertyType" /&gt;
        &lt;/xs:sequence&gt;
      &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;
  &lt;/xs:schema&gt;
  </code></pre>