| From: | Marcos Magueta <maguetamarcos(at)gmail(dot)com> |
|---|---|
| To: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | WIP - xmlvalidate implementation from TODO list |
| Date: | 2025-12-06 23:38:24 |
| Message-ID: | CAN3aFCdx8AapWSVpJ1kaC7OC_v7QwbjgbGw9WfPBBY2GMyOadQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hello!
I am likely one of the few people still using XML, but I noticed XSD schema
validation is still a TODO on postgresql, which I have some personal use
cases for.
In this patch I attempt to implement XMLVALIDATE with the already in use
libxml following a version I got my hands on of the SQL/XML standard of
2016.
In short, I had to add the ACCORDING word to comply with it and completely
ignored the version that was already in the src that fetches arbitrary
schemas (it refers to validations of dtds, which is another more
troublesome TODO).
I had problems running the regression tests on my machine, so I could only
test the feature by spawning a modified instance of postgresql and issuing
queries through psql, therefore I am marking it as WIP. If anyone can
assert the tests pass, I would be glad.
Also, this is my first patch, so I might have not followed standard
practices as best as I could, so please pay particular attention to that on
review.
Cheers,
Marcos Magueta.
| Attachment | Content-Type | Size |
|---|---|---|
| xml-patch | application/octet-stream | 23.6 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Chao Li | 2025-12-07 00:13:42 | Re: Making jsonb_agg() faster |
| Previous Message | Tom Lane | 2025-12-06 20:47:59 | Re: Strict functions with variadic "any" argument bug |