How Do I Retrieve Validation Errors of an XML Document? (Magic xpa 4.x)
After you do an XMLValidate(), the errors, if any, can be retrieved with the XMLValidationError() function. This function returns a vector of text messages (Unicode). Using VecSize() on the vector gives you the number of error messages, which you can then save to a table, print, or display.
How Do I Handle Errors Encountered During XML Access?
The Online and Rich Client Samples projects (program XM11 and RXM11)