title: externally create jaxb annotations for class
body: <p>So, usually I apply JAXB annotations in the code as follows:</p>
  
  <pre><code>package com.example;
  
  @XmlRootElement(name = "Foo", namespace = "example.com")
  @XmlType(name = "Foo", namespace = "example.com")
  public class Foo {
      ...
  }
  </code></pre>
  
  <p>Foo is a java class that is used to communicate with web services (via Spring/CXF). The above annotations, help generate the XML Schema in the wsdl appropriately.</p>
  
  <p>I have hit a situation where I can not modify the class itself, but I can provide an jaxb external binding file to the code that generates the schema. Note that the @XmlRootElement exists in the class.</p>
  
  <p>How do I write an equivalent binding file that does what the above annotations do?</p>