title: cvc-elt.1.a: Cannot find the declaration of element 'xxx'
body: <p>I have to handwriting an sample xml for my xsd, but I always get invalid message: <strong>cvc-elt.1.a: Cannot find the declaration of element 'RS_WMS_GET_PO_DATA_v2.0'.</strong></p>
  
  <p>My XSD:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-16"?&gt;
  &lt;schema xmlns:ns0="http://www.rossinc.com/" xmlns:msbtsdml="http://schemas.rossinc.com/BizTalk" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.rossinc.com/" xmlns="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;annotation&gt;
      &lt;appinfo&gt;
        &lt;msbtsdml:StoredProcedureName xmlns:msbtsdml="http://schemas.rossinc.com/BizTalk/DMLAdapter"&gt;RS_WMS_GET_PO_DATA&lt;/msbtsdml:StoredProcedureName&gt;
        &lt;msbtsdml:ResponseRootName xmlns:msbtsdml="http://schemas.rossinc.com/BizTalk/DMLAdapter"&gt;poData&lt;/msbtsdml:ResponseRootName&gt;
      &lt;/appinfo&gt;
    &lt;/annotation&gt;
    &lt;element name="RS_WMS_GET_PO_DATA_v2.0"&gt;
      &lt;complexType&gt;
        &lt;sequence&gt;
          &lt;element minOccurs="1" maxOccurs="1" name="Parameters"&gt;
            &lt;complexType&gt;
              &lt;sequence&gt;
                &lt;element default="0" name="ERROR_OCCURRED" type="string"&gt;
                  &lt;annotation&gt;
                    &lt;appinfo&gt;
                      &lt;msbtsdml:ParamDir xmlns:msbtsdml="http://schemas.microsoft.com/BizTalk/2003"&gt;In&lt;/msbtsdml:ParamDir&gt;
                    &lt;/appinfo&gt;
                  &lt;/annotation&gt;
                &lt;/element&gt;
                &lt;element default="1" name="XML_TAGS" type="int"&gt;
                  &lt;annotation&gt;
                    &lt;appinfo&gt;
                      &lt;msbtsdml:ParamDir xmlns:msbtsdml="http://schemas.microsoft.com/BizTalk/2003"&gt;In&lt;/msbtsdml:ParamDir&gt;
                    &lt;/appinfo&gt;
                  &lt;/annotation&gt;
                &lt;/element&gt;
                &lt;element default="0" name="NUM_ROWS" type="int"&gt;
                  &lt;annotation&gt;
                    &lt;appinfo&gt;
                      &lt;msbtsdml:ParamDir xmlns:msbtsdml="http://schemas.microsoft.com/BizTalk/2003"&gt;In&lt;/msbtsdml:ParamDir&gt;
                    &lt;/appinfo&gt;
                  &lt;/annotation&gt;
                &lt;/element&gt;
              &lt;/sequence&gt;
            &lt;/complexType&gt;
          &lt;/element&gt;
          &lt;element name="RS_WMS_GET_PO_DATA"&gt;
            &lt;complexType&gt;
              &lt;all minOccurs="1" maxOccurs="1"&gt;
                &lt;element name="COMPANY_CODE" type="string" /&gt;
                &lt;element name="DIVISION" type="string" /&gt;
                &lt;element name="PO_NUMBER" type="string" /&gt;
                &lt;element name="PO_WH_SEQUENCE" type="string" /&gt;
                &lt;element name="ERP_ACTION_CODE" type="string" /&gt;
              &lt;/all&gt;
            &lt;/complexType&gt;
          &lt;/element&gt;
          &lt;element name="DMLAdapterConfig"&gt;
            &lt;complexType&gt;
              &lt;sequence&gt;
                &lt;element name="EnvironmentId" type="string" /&gt;
              &lt;/sequence&gt;
            &lt;/complexType&gt;
          &lt;/element&gt;
        &lt;/sequence&gt;
      &lt;/complexType&gt;
    &lt;/element&gt;
  &lt;/schema&gt;
  </code></pre>
  
  <p>My XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;RS_WMS_GET_PO_DATA_v2.0&gt;
      &lt;Parameters&gt;
          &lt;ERROR_OCCURRED&gt;0&lt;/ERROR_OCCURRED&gt;
          &lt;XML_TAGS&gt;1&lt;/XML_TAGS&gt;
          &lt;NUM_ROWS&gt;0&lt;/NUM_ROWS&gt;
      &lt;/Parameters&gt;
      &lt;RS_WMS_GET_PO_DATA&gt;
          &lt;COMPANY_CODE&gt;&lt;/COMPANY_CODE&gt;
          &lt;DIVISION&gt;&lt;/DIVISION&gt;
          &lt;PO_NUMBER&gt;&lt;/PO_NUMBER&gt;
          &lt;PO_WH_SEQUENCE&gt;&lt;/PO_WH_SEQUENCE&gt;
          &lt;ERP_ACTION_CODE&gt;&lt;/ERP_ACTION_CODE&gt;
      &lt;/RS_WMS_GET_PO_DATA&gt;
      &lt;DMLAdapterConfig&gt;
          &lt;EnvironmentId&gt;&lt;/EnvironmentId&gt;
      &lt;/DMLAdapterConfig&gt;
  &lt;/RS_WMS_GET_PO_DATA_v2.0&gt;
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Here's the website I'm using:
  <a href="http://www.corefiling.com/opensource/schemaValidate.html" rel="noreferrer">http://www.corefiling.com/opensource/schemaValidate.html</a></p>