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

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

Commit: 8bf14182cfeeae2ad5e5feb792701250e1218638
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-03-03T17:29:45Z
Releases: 9.0.0
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