title: Java SWIFT Library
body: <p>I'm looking for a Java library for SWIFT messages. I want to</p>
  
  <ul>
  <li>parse SWIFT messages into an object model</li>
  <li>validate SWIFT messages (including SWIFT network validation rules)</li>
  <li>build / change SWIFT messages by using an object model</li>
  </ul>
  
  <p>Theoretically, I need to support all SWIFT message types. But at the moment I need MT103+, MT199, MT502, MT509, MT515 and MT535.</p>
  
  <p>So far I've looked at two libraries</p>
  
  <ul>
  <li>AnaSys Message Objects (<a href="http://www.anasys.com/products/messageobjects/" rel="noreferrer">link text</a>)</li>
  <li>Datamation SWIFT Message Suite (<a href="http://www.paymentcomponents.com/swift/message_suite/components_suite.html" rel="noreferrer">link text</a>)</li>
  </ul>
  
  <p>Both libraries allow to accomplish the tasks mentioned above but in both cases I'm not really happy. </p>
  
  <p>AnaSys uses a internal XML representation for all SWIFT messages which you need to know in order to access the fields of a message. And you need to operate on the DOM of the XML representation, there is no way to say "get the contents of field '50K' of the SWIFT message".</p>
  
  <p>And the Datamation library seems to have the nicer API but does not find all errors.</p>
  
  <p>So does anyone know other SWIFT libraries to use? </p>