[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11554: 24.0.97; nxml-auto-insert-xml-declaration-flag + zipped xml f

From: Jambunathan K
Subject: bug#11554: 24.0.97; nxml-auto-insert-xml-declaration-flag + zipped xml files
Date: Fri, 25 May 2012 00:46:57 +0530

1. (setq nxml-auto-insert-xml-declaration-flag t)
2. Visit the attached test.zip

      M Filemode      Length  Date         Time      File
      - ----------  --------  -----------  --------  ----------
        drwx------         0  25-May-2012  00:29:06  test/
        -rwx------        40  25-May-2012  00:29:06  test/a.xml
      - ----------  --------  -----------  --------  ----------
                    40                         2 files
3. Visit a.xml.  Note the multiple XML declarations.

      <?xml version="1.0" encoding="utf-8"?>
      <?xml version="1.0" encoding="utf-8"?>

   The original file has just a single XML declaration.  The second
   declaration is the gratuitous declaration added due to (1).

   Why is nxml mode tampering with an existing XML file?

4. The problem surfaces with XML files in a ZIP archive (for example ODT
   files) and not with standalone XML files.

In GNU Emacs (i386-mingw-nt5.1.2600)
 of 2012-05-17 on MARVIN
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --with-gcc (4.6) --no-opt --enable-checking --cflags

Attachment: test.zip
Description: Zip archive

reply via email to

[Prev in Thread] Current Thread [Next in Thread]