Introduction Example Serialexable

Introduction

Serialex makes it dead easy to convert a Java POJO (Plain Old Java Object) to XML and back again.

It can convert any depth of fields within an object, and requires no configuration or annotations within the class to perform the conversion.

There are some basic rules about the types of object that can be converted.

  1. The class must have a no-arguement constructor
  2. The field types must be one of
  3. The fields must have standard named getter and setter methods
  4. Transient fields are not converted

Dependencies

Serialex uses on JDom to perform the conversion to and from XML.