Add xml_is_well_formed, xml_is_well_formed_document, xml_is_well_formed_content
Tom Lane <tgl@sss.pgh.pa.us>
Add xml_is_well_formed, xml_is_well_formed_document, xml_is_well_formed_content functions to the core XML code. Per discussion, the former depends on XMLOPTION while the others do not. These supersede a version previously offered by contrib/xml2. Mike Fowler, reviewed by Pavel Stehule
Files
| Path | Change | +/− |
|---|---|---|
| contrib/xml2/pgxml.sql.in | modified | +3 −7 |
| contrib/xml2/uninstall_pgxml.sql | modified | +1 −3 |
| contrib/xml2/xpath.c | modified | +9 −2 |
| doc/src/sgml/func.sgml | modified | +79 −1 |
| src/backend/utils/adt/xml.c | modified | +71 −1 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/pg_proc.h | modified | +7 −1 |
| src/include/utils/xml.h | modified | +4 −1 |
| src/test/regress/expected/xml_1.out | modified | +59 −0 |
| src/test/regress/expected/xml.out | modified | +87 −0 |
| src/test/regress/sql/xml.sql | modified | +21 −0 |