c# - XMLSerialization and XML Schema validation -


Is it possible to use XML schema recognition and XMLSerializer simultaneously?

My project currently uses XMLSerializer to validate the schema, we are probing the pricing values ​​such as:

  if (String.IsNullOrEmptE (Person.Name)) throwing new exceptions ();   

Thanks!

I would suggest using XmlValidatingReader to validate schema, please see for an example. .

Comments