From: Stefan F. <ste...@we...> - 2012-06-06 16:56:04
|
Brett & Erik, going forward I am considering refactoring the xml initialization of Rails. Further I did a short comparison of the feature and syntax of a few xml serialization libraries for java and very quickly found one that pleases me. The idea of the newer libraries add is that it is possible to align the java classes and xml elements, so that in effect you do not have to write anymore manually for parsing. Most of them use annotations to control this mechanism. So my proposal is to use Simple Serialization Library (see http://simple.sourceforge.net/home.php) Checkout http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php for documentation and code examples). (Reasonable Alternatives were XStream and Jackson with XML extension and Protostuff, I do not like JAXB) I am still considering to choose a more compact format (like Json or even a binary one like Kryo or Smile) for the planned network play. Stefan |