Re: [xml] Constraint validation for huge documents

2021-01-05 Thread Liam R E Quin
On Tue, 2021-01-05 at 19:12 +0100, Stefan de Konink wrote: > > > Yesterday I wrote a custom validator in lxml for key/keyref and > unique > constraints. Could you do this instead using schematron? It may be somewhat slower but easier to maintain. Liam -- Liam Quin - web slave for

Re: [xml] Constraint validation for huge documents

2021-01-05 Thread Stefan de Konink
Hi Nick, Thanks for your reply. It does have a noticeable impact, while having compiled libxml2-git yesterday, I oversaw it. With the single constraint file; libxml2-2.9.10 User time (seconds): 90.81 Elapsed (wall clock) time (h:mm:ss or m:ss): 1:31.60 libxml2-git User time (seconds):

Re: [xml] Constraint validation for huge documents

2021-01-05 Thread Nick Wellnhofer via xml
The XML Schemas code hasn't been actively maintained for more than 10 years, so it's unlikely to receive a helpful answer regarding the code. There was a recent patch which might help: https://gitlab.gnome.org/GNOME/libxml2/-/commit/faea2fa9b890cc329f33ce518dfa1648e64e14d6 Other than that,