Last post Oct 18, 2010 04:21 AM by TheGr8Wall
Oct 15, 2010 04:43 AM|TheGr8Wall|LINK
I am validating an xml markup against a schema using a XmlReader object. To find validation warnings i am passing a schemavalidation settings object. How do I find the elements that are causing the validation errors and their value that is causing the validation
exploring the validationargs object, i found a variable holding the element that caused the error. But the problem is,it is a non public member of ValidationEventArgs.Exception.
How do I get that info??
Oct 17, 2010 10:50 PM|Decker Dong - MSFT|LINK
Since you've found the problem thorugh a variable, why not try to throw a public exception of this type so as to let your Exception handler to catch it?
Oct 18, 2010 04:21 AM|TheGr8Wall|LINK
actually i have generate a report of all such validation errors.
This report needs to capture the following entities.
Name of the element causing the error - Private member of the exception object.
Type of the error - this is the private member of the exception object.
Value of the element - Haven't found where this fellow is.
Pls help me with this
I am using acallback handler.