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 errorlist

Error list as returned by ValidateDocument

OBJECT node

Namespace declaring node

Return value

RECORD ARRAY

Cleaned 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