Apache OpenOffice (AOO) Bugzilla – Issue 3404
Output to XML
Last modified: 2004-01-27 15:21:52 UTC
I beleive that OO stores a form of XML in its .sxw files. I would be excellent if OO could save as XML (.dtd, .xml etc.). This would then give the ability to store documents in such things as Continuus (or even, in hushed tones, Visual Source Safe) in a way that would enable version control.
Reassigned to Éric.
ES->OSavill: sxw is a zip file containing the xml files and other elements. what would you do with embedded objects if the files were not packed this way? ES->FT: an option to output to plain text?
The flat XML filter component (used e.g. for API documentation) already provides this. I don't think this behaviour should be enabled by default; due to the performance constraints, and due to it establishing an realted, but alternative file format. The flat filter is part of the ODK examples, and I also think a compiled version is available on the OOo website, but I don't know where. dvo->OSavill: Please look around the OOo site for the 'flat' filter. I think it was discussed in dev@api and dicuss lists some months ago.
The `Flat XML' filter made it into 643 but has now been removed. It would still be nice for code repository tools if this was re-instated. I realise the .sxw has the DTD and the XML in it, but it has posibly more than required sometimes. I would suggest `Flat XML' could be re-introduced such that the base DTD is in-line encoded at the top of the document. This could lead to really nasty documents but it is up to the user if they want to persue this avenue as opposed to the .sxw route. Also the .sxw is zipped. This might not always be convenient to users. Another alternative would be to do a save option which said `do not zip this into a .sxw file but simply save all the components of the .sxw file to disk'. Fun to reload ;-)
Just write a filter that unzips the OO.o document files and store the data to a directory of your tastes.
Closed
*** Issue 24813 has been marked as a duplicate of this issue. ***