Patched addData for XmlSerializationVisitor