title: Getting exception while compiling schema
body: <p>We're trying to parse an XSD and build a property sheet out of that (using XML Beans). </p>
  
  <p>The code is as following:</p>
  
  <pre>
     XmlObject xmlObj = XmlObject.Factory.parse( schema );
     sts = XmlBeans.compileXsd(new XmlObject[] { xmlObj },  XmlBeans.getBuiltinTypeSystem(), null);
  </pre>
  
  <p>Call to compileXsd throws the an exception with message: <strong>The 0th supplied input is not a schema document: its type is N=</strong></p>
  
  <p>Our schema looks like this:</p>
  
  <pre>
    &lt;schema xmlns:com.co.workflow=&quot;com.co.workflow&quot; xmlns:org.data=&quot;org.data&quot; targetNamespace=&quot;org.activity&quot; version=&quot;1.0&quot;&gt;
    &lt;complexType class=&quot;org.activity.ExecuteCommand&quot; name=&quot;executeCommand&quot;&gt;
      &lt;complexContent&gt;
      ...
      ...
  </pre>
  
  <p>Stack trace: </p>
  
  <pre>
  The 0th supplied input is not a schema document: its type is N=
      at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:211)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
      at org.apache.xmlbeans.XmlBeans.compileXsd(XmlBeans.java:553)
          ......
  </pre>