Export xml.c's libxml-error-handling support so that contrib/xml2 can use it

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 3c93c3ab9535e88e47d1f357e5a77a0905dfcc01
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-03-03T17:29:53Z
Releases: 8.4.3
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

PathChange+/−
src/backend/utils/adt/xml.c modified +36 −19
src/include/utils/xml.h modified +3 −1