add xml properties support
fix to_s
fix silly bug
serialize xml with support for xml properties