Jim Jones <jim.jo...@uni-muenster.de> writes: > On 09.03.23 21:21, Tom Lane wrote: >> I've looked through this now, and have some minor complaints and a major >> one. The major one is that it doesn't work for XML that doesn't satisfy >> IS DOCUMENT. For example,
> How do you suggest the output should look like? I'd say a series of node trees, each starting on a separate line. >> I also suspect that it's outright broken to attach a header claiming >> the data is now in UTF8 encoding. If the database encoding isn't >> UTF8, then either that's a lie or we now have an encoding violation. > I was mistakenly calling xml_parse with GetDatabaseEncoding(). It now > uses the encoding of the given doc and UTF8 if not provided. Mmmm .... doing this differently from what we do elsewhere does not sound like the right path forward. The input *is* (or had better be) in the database encoding. regards, tom lane