Serialization of the xml (wip)