Export xml.c's libxml-error-handling support so that contrib/xml2 can use it
Tom Lane <tgl@sss.pgh.pa.us>
Export xml.c's libxml-error-handling support so that contrib/xml2 can use it too, instead of duplicating the functionality (badly). I renamed xml_init to pg_xml_init, because the former seemed just a bit too generic to be safe as a global symbol. I considered likewise renaming xml_ereport to pg_xml_ereport, but felt that the reference to ereport probably made it sufficiently PG-centric already.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/xml.c | modified | +36 −19 |
| src/include/utils/xml.h | modified | +3 −1 |