title: Can't validate against XSD
body: <p>I have a problem similiar to <a href="https://stackoverflow.com/questions/8426154/no-matching-global-declaration-available-for-the-validation-root">No matching global declaration available for the validation root</a> but it does not help me in solving my issue with validating XML.
  In the comments from php.net I read that the child elements of the root element need a namespace too or something. I tried variations but it would not solve the problem nor change the message yet. Does anyone know what's wrong?</p>
  
  <pre><code>libxml Version =&gt; 2.7.6
  libxml
  libxml2 Version =&gt; 2.7.6
  libxslt compiled against libxml Version =&gt; 2.7.6
  </code></pre>
  
  <p>PHP:</p>
  
  <pre><code>print_r($xml-&gt;schemaValidate('customer.xsd'));
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>PHP Warning:  DOMDocument::schemaValidate():
  Element '{http://xxx.de/ecom-customer}customerExport':
  No matching global declaration available for the validation root.
  </code></pre>
  
  <p>XML beginning:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xxx:customerExport xmlns:xxx="http://xxx.de/ecom-customer"&gt;
    &lt;datasource&gt;PROD&lt;/datasource&gt;
  ...
  </code></pre>
  
  <p>XSD partial:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:jxb="http://java.sun.com/xml/ns/jaxb" xmlns:xxx="http://xxx.de/ecom-customer"
  targetNamespace="http://xxx.de/ecom-customer"
  jxb:version="2.0"&gt;
  
  &lt;xsd:element name="customerExport" type="xxx:customerExport"
      xmlns="xxx"&gt;
      &lt;xsd:annotation&gt;
          &lt;xsd:appinfo&gt;
              &lt;jxb:class name="CustomerExportRoot" /&gt;
          &lt;/xsd:appinfo&gt;
      &lt;/xsd:annotation&gt;
  &lt;/xsd:element&gt;
  </code></pre>