From PostgreSQL wiki
Starting here for collaborate (without more deeper knowledge of C or C++, can I?) with a xmlcanonical type suggested implementation:
- "An implementation of an XML canonicalization function for optional use would certainly be welcome. I would actually like to see a separate xmlcanonical type, but that would be quite a bit more work", Peter Eisentraut.