Reputation: 432
How can i catch error code when validate XML document with XSD schema?
Upvotes: 1
Views: 244
Reputation: 56172
You can catch it in delegate ValidationEventHandler
which you pass to Validate
method.
Reference: http://msdn.microsoft.com/en-us/library/bb340331(v=vs.90).aspx
Upvotes: 2