title: Error while trying to create Java Class out of .xsd file
body: <p>I have two XMLs and i want convert them into java classes so i went to <a href="http://www.xmlforasp.net/CodeBank/System_Xml_Schema/BuildSchema/BuildXMLSchema.aspx" rel="nofollow noreferrer">this</a> page where i can generate .xsd files. I'm trying to make two Java Class out of them in Eclipse and I'm getting the same error:</p>
  
  <pre><code>parsing a schema...
  [ERROR] Content is not allowed in prolog.
    line 1 of file:/(...)/queryClass.xsd
  
  Failed to parse a schema.
  </code></pre>
  
  <p>These are my .xsd files:</p>
  
  <p>First:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-16"?&gt;
  &lt;xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;xsd:element name="dao" type="daoType" /&gt;
    &lt;xsd:complexType name="daoType"&gt;
      &lt;xsd:sequence&gt;
        &lt;xsd:element name="query" type="queryType" /&gt;
      &lt;/xsd:sequence&gt;
    &lt;/xsd:complexType&gt;
    &lt;xsd:complexType name="queryType"&gt;
      &lt;xsd:sequence&gt;
        &lt;xsd:element name="arguments" type="argumentsType" /&gt;
        &lt;xsd:element name="statement" type="xsd:string" /&gt;
      &lt;/xsd:sequence&gt;
      &lt;xsd:attribute name="name" type="xsd:string" /&gt;
    &lt;/xsd:complexType&gt;
    &lt;xsd:complexType name="argumentsType"&gt;
      &lt;xsd:sequence&gt;
        &lt;xsd:element name="argument" type="argumentType" /&gt;
      &lt;/xsd:sequence&gt;
    &lt;/xsd:complexType&gt;
    &lt;xsd:complexType name="argumentType"&gt;
      &lt;xsd:attribute name="name" type="xsd:string" /&gt;
    &lt;/xsd:complexType&gt;
  &lt;/xsd:schema&gt;
  </code></pre>
  
  <p>Second:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-16"?&gt;
  &lt;xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;xsd:element name="properties" type="propertiesType" /&gt;
    &lt;xsd:complexType name="propertiesType"&gt;
      &lt;xsd:sequence&gt;
        &lt;xsd:element maxOccurs="unbounded" name="entry" type="entryType" /&gt;
      &lt;/xsd:sequence&gt;
      &lt;xsd:attribute name="version" type="xsd:decimal" /&gt;
    &lt;/xsd:complexType&gt;
    &lt;xsd:complexType name="entryType"&gt;
      &lt;xsd:attribute name="key" type="xsd:string" /&gt;
    &lt;/xsd:complexType&gt;
  &lt;/xsd:schema&gt;
  </code></pre>