views:

83

answers:

0

I am validating form input against an XML schema definition by serializing my business layer objects to a MemoryStream and then reading the MemoryStream using a validating XMLReader. In the callback function for validation errors, I have access to the name of the element failing validation and to a rather lengthy string containing the details of the validation error, but only for one validation error at a time. Does anyone have a good technique for bundling up all the errors and presenting a user-friendly error message back to the form user?