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

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

Commit: f821c16e953355502714d364418b095f7fd53330
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-03-03T17:30:01Z
Releases: 8.3.10
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