If you use XML Serialization how do you validate data?
Posted
by chobo2
on Stack Overflow
See other posts from Stack Overflow
or by chobo2
Published on 2010-05-02T22:59:54Z
Indexed on
2010/05/02
23:07 UTC
Read the original article
Hit count: 137
Hi
I am planning to try to use XML Serialization in C# but I am wondering if I get a .xml file how do I check if the xml file confirms to the right type?
Like usually you would make a schema that you can validate against to make sure if it confirms to the right format.
Can you hook a schema up to to XML Serialization or does it do this checking automatically?
Thanks
© Stack Overflow or respective owner