GNOME Bugzilla – Bug 164975
User-definable string for the XML declaration
Last modified: 2021-07-05 13:22:56 UTC
On Sat, Jan 22, 2005 at 09:40:31PM +0100, Minor Gordon wrote: Daniel, Thank you for the extremely prompt response. I will download the CVS and test this. In the meantime, I have another, simpler request that also has to do with WebDAV. In xmlwriter.c, xmlTextWriterStartDocument line 533 you automatically put a \n after the ?> in <?xml version=xx ?>. Unfortunately, Microsoft's WebDAV client (for WebFolders) has its own finicky XML parser, and it doesn't like any indentations in the WebDAV XML response. It will still parse the \n, but certain functions of the client are disabled, most notably double clicking on files in WebDAV folders (I have modified xmlwriter.c to confirm this). xmlTextWriterSetIndent(0) takes out pretty printing in the document itself. Can you also check this setting before printing the \n after "?>" ? - I dislike this. A number of software read the first line just to detect possible encoding in the XMLDecl and then stream on the end of the document. This change is likely to break load of stuff. But adding a separate option xmlTextWriterSetXMLDeclLine() for this purpose would be reasonnable. Please fill a request for enhancement in bugzilla and it's likely to be added before the next release. Daniel
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxml2/-/issues/ Thank you for your understanding and your help.