-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello!
Sharing a solution to a problem I had myself with opening an odt file after export. I use emacs 23.4 on win7 with orgmode 7.8.03. I could not open the new exported odt file with word2010 or libreoffice. Somewhere I found out that content.xml that is inside the odt file was the faulty part. Parts of odt file M Filemode Length Date Time File - - ---------- -------- ----------- -------- --------------------- -rw-rw-rw- 39 19-May-2012 11:35:06 mimetype -rw-rw-rw- 40104 19-May-2012 11:35:06 content.xml drwxrwxrwx 0 19-May-2012 11:35:06 Images/ -rw-rw-rw- 1132 19-May-2012 11:35:04 Images/0001.png -rw-rw-rw- 1132 19-May-2012 11:35:06 Images/0002.png -rw-rw-rw- 1132 19-May-2012 11:35:06 Images/0003.png drwxrwxrwx 0 19-May-2012 11:35:06 meta-inf/ -rw-rw-rw- 966 19-May-2012 11:35:06 META-INF/manifest.xml -rw-rw-rw- 846 19-May-2012 11:35:06 meta.xml -rw-rw-rw- 61814 19-May-2012 11:35:06 styles.xml - - ---------- -------- ----------- -------- --------------------- 107165 10 files The top of content.xml looked like this: <?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?> <office:document-content ..... Three xml declarations! Checked my settings in .emacs and found that I had an nxml property set like this: '(nxml-auto-insert-xml-declaration-flag t) After changed it to '(nxml-auto-insert-xml-declaration-flag nil) , restarting emacs and exporting to odt again I could open the odt file. The top of content.xml inside the odt file now looks like this: <?xml version="1.0" encoding="UTF-8"?> <office:document-content..... Just one declaration. So if want to be able to open odt files created with orgmode odt exporter you have to have nxml-auto-insert-xml-declaration-flag set to nil. /Christina -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (MingW32) iEYEARECAAYFAk+3czwACgkQ2+bVj21Y+8lvqACfc3i1QJH8BE9Ykthjb94Kaspe /YwAoJUDvlVbiZbqenV/HIl8omdgDAvC =1idV -----END PGP SIGNATURE-----