After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 164975 - User-definable string for the XML declaration
User-definable string for the XML declaration
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: general
2.6.15
Other All
: Normal enhancement
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2005-01-23 12:37 UTC by Minor Gordon
Modified: 2021-07-05 13:22 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Minor Gordon 2005-01-23 12:37:51 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
Comment 1 GNOME Infrastructure Team 2021-07-05 13:22:56 UTC
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.