Looks that SQL/XML coding for PostgreSQL was described here http://chernowiki.ru/Dev/Pgxmltype, back to google soc 2006. John