[Geoserver-devel] Verbose WFS output

Hello,

this is a question I posted to geoserver-users but got no answer. Maybe it’s more for developers?

We need Geoserver’s XML (WFS) responses to be formatted, or at least contain line breaks. The manual states that by enabling “Verbose messages” in the global settings, the XML output will be formatted. Unfortunately, turning this on did not change the WFS reponse formatting (tried with Geoserver 2.10 and 2.20).

With a little further digging, I found a “verbose” option in the wfs.xml file. Enabling verbose here and restarting Geoserver resulted in formatted XML output.

Is this the expected behaviour? Is this the correct way to configure what we need? Is it reliable?
(Should the manual be changed?)

Then I did some more research and found out that only WFS responses with the outputFormat=GML2 option are sent formatted (line breaks, indentations) when verbose is enabled in wfs.xml. GML3 is always sent without formatting.

Is there a way to get the GML3-output also formatted?

Thanks
Dennis