Changed serialization to use rexml