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

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -