private static void FillSerializers(this SerializationConfig serializationConfig, XmlNode node) { foreach (XmlNode child in node.ChildNodes) { var name = CleanNodeName(child); var value = GetTextContent(child); if ("serializer".Equals(name)) { var serializerConfig = new SerializerConfig(); serializerConfig.SetClassName(value); var typeClassName = GetAttribute(child, "type-class"); serializerConfig.SetTypeClassName(typeClassName); serializationConfig.SerializerConfigs.Add(serializerConfig); } else { if ("global-serializer".Equals(name)) { serializationConfig.ConfigureGlobalSerializer(gs => { gs.TypeName = value; }); } } } }