title: JAXB bindings exclude field
body: <p>I've looked around google a little bit, but I'm sure someone here can provide the answer to this quicker than I can track it down. I'm running a XJC2Task (org.jvnet.jaxb2_commons.xjc.XJC2Task) with a binding.xjb file to generate java source from some XSDs. </p>
  
  <p>We are looking at removing some personal information that we receive from a third party from the data.  Is there a way that I could specify some of the elements as @XMLTransient or ignore them outright from the bindings.xjb file? </p>
  
  <p>So for example If I have the following xsd :</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xs:schema targetNamespace="test.3.0" xmlns="test.3.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"  elementFormDefault="qualified" attributeFormDefault="unqualified"&gt;
  
      &lt;xs:element name="TestInfo" type = "TestInfo"&gt;
          &lt;xs:annotation&gt;
              &lt;xs:documentation&gt;TestInfo schema&lt;/xs:documentation&gt;
          &lt;/xs:annotation&gt;
      &lt;/xs:element&gt;
      &lt;xs:complexType name="TestInfo"&gt;
          &lt;xs:sequence&gt;
              &lt;xs:element name="name" type="xs:string" minOccurs="0"/&gt;
              &lt;xs:element name="id" type="xs:string"/&gt;
          &lt;/xs:sequence&gt;
      &lt;/xs:complexType&gt;
  
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>and in my binding.xjb file I have </p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;jaxb:bindings version="2.1" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
                 xmlns:xs="http://www.w3.org/2001/XMLSchema"
                 xmlns:inheritance="http://jaxb2-commons.dev.java.net/basic/inheritance"
                 jaxb:extensionBindingPrefixes="inheritance"&gt;
  
      &lt;jaxb:globalBindings&gt;
          &lt;jaxb:serializable uid="1" /&gt;
      &lt;/jaxb:globalBindings&gt;
      &lt;jaxb:bindings schemaLocation="schema/test.xsd"&gt;
          &lt;jaxb:schemaBindings&gt;
              &lt;jaxb:package name="org.test" /&gt;
          &lt;/jaxb:schemaBindings&gt;
      &lt;/jaxb:bindings&gt;
  </code></pre>
  
  <p>Is there a way that I can remove the <strong>id</strong> from this?
  I'm hoping I don't have to relearn XSLT to accomplish this.  ;D</p>