Method Validate(XDocument, ElementRegistry)
Validates a document against the registry's schema. Returns one positioned message per
problem; an empty list means the document is schema-valid.
public static IReadOnlyList<(int Line, int Column, string Message)> Validate(XDocument document, ElementRegistry registry)