SimplifyXMLValidationErrors (open)
Simplify a validation error list
Syntax
LOADLIB "wh::xml/xsd.whlib";
RECORD ARRAY FUNCTION SimplifyXMLValidationErrors(RECORD ARRAY errorlist, OBJECT node)Parameters
RECORD ARRAY errorlistError list as returned by ValidateDocument
OBJECT nodeNamespace declaring node
Return value
RECORD ARRAYCleaned error list
Description
Clean up a validation error list by reading the namespace declarations of a specific node (usually the document element) and rewriting namespace references in the error list to prefixes