// ****************************************************************** private static void UnknownNode(object sender, XmlNodeEventArgs xmlNodeEventArgs) { // Correction according to: https://stackoverflow.com/questions/42342875/xmlserializer-warns-about-unknown-nodes-attributes-when-deserializing-derived-ty/42407193#42407193 if (xmlNodeEventArgs.Name == "xsi:type") { } else { throw new XmlException("UnknownNode" + xmlNodeEventArgs.ToString()); } }
void ser_UnknownNode(object sender, XmlNodeEventArgs e) { throw new Exception(e.ToString()); }
private static void UnknownNode(object sender, XmlNodeEventArgs e) { Debug.Log("unknown node " + sender.ToString() + " " + e.ToString()); }