title: JAXB Schemagen (v. 7.0.450.18): change XmlElement name and XmlType(propOrder={...})
body: <p>i am struggling a bit with the autmATED generation of XSD files with schemagen.
  First of all i have to tell, that i am working for a project at university and must not change anything in the code of my java classes but the annotations...</p>
  
  <p>So, basically what i have to do is to rename some of my XmlElements and have to bring them into a certain Order. I thought, i could solve this like that:</p>
  
  <pre><code>@XmlType(propOrder = { "email", "id", "name", "publication" })
  public class Author {
     ...
     private List&lt;Publication&gt; publications = new LinkedList&lt;&gt;();
     ...
     @XmlElement(name = "publication")
     public List&lt;Publication&gt; getPublications() {
      return publications;
  }
     public void setPublications(List&lt;Publication&gt; publications) {
      this.publications = publications;
  } 
  </code></pre>
  
  <p>The default value of XmlAccessorType is <code>@XmlAccessorType(XmlAccessType.PUBLIC_MEMBER)</code>. But when I try to generate the XML Schema using schemagen (in Eclipse and on the command line...), i get the following errors:</p>
  
  <pre><code>Property publications is present but not specified in @XmlType.propOrder
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Property publication appears in @XmlType.propOrder, but no such property exists. Maybe you meant publications?
  </code></pre>
  
  <p>So, to me this sounds a bit contradictory cause it seems like schemagen is completly ignoring what i specified... can anybody tell me where the problem is??</p>
  
  <p>Thanks a lot!</p>