xml serialization fixed, tested

Signed-off-by: serengeor <serengeor@gmail.com>