title: How to ignore a field in castor marshalling
body: <p>I'm using castor to create XML file from java object.
  I would like to ignore a field in my class when I create XML file.</p>
  
  <p>The documentation <a href="http://castor.codehaus.org/reference/1.3.0/html/XML%20data%20binding.html" rel="nofollow">http://castor.codehaus.org/reference/1.3.0/html/XML%20data%20binding.html</a> says:</p>
  
  <blockquote>
    <p>1.2.2.1. Marshalling Behavior<br>
    For Castor, a Java class has to map into an XML element. When Castor marshals an object, it will:<br>
    - use the mapping information, if any, to find the name of the element to create<br>
    or<br>
    - by default, create a name using the name of the class<br>
    It will then use the fields information from the mapping file to determine how a given property of the object has to be translated into one and only one of the following:<br>
    - an attribute<br>
    - an element<br>
    - text content<br>
    - nothing, as we can choose to ignore a particular field<br></p>
  </blockquote>
  
  <p>But how, can I put annotation @IgnoreFields or something like that ?
  I know, it is possible to create mapping file to specify fields to be converted.</p>