Is it possible to use xmlstarlet to optimize writer files? How?

asked 2021-05-03 09:19:00 +0200

Giova gravatar image

When I open my master file, it takes about 20 minutes for it to open. It contains about ten odt files of about 100 kb each. Having read, on the net, that there is the possibility, for calc, to optimize files, using xmlstarlet, I ask you: is it possible to use it also to optimize writer files? How?


edit retag flag offensive close merge delete


The article you refer to is "applicable" to any XML format that you know well. E.g., you could save your 10 ODTs into FOTDs, then do the modifications (provided that you know what's wrong there - just the same way the author of the article knew what describes the boxes, and if they need them or not).

But note that the article didn't discuss why author had to use the XML editing tool in the first place. Because the same problem (multiple invisible boxes in the ODS) may be solved from UI - using Navigator (F5), you may see the drawing objects there, double-click each to select it, and Del to remove. The only reason to use direct XML editing is to do a mass-removal (test with bug document in tdf#130326 to see the problem described in that article).

Generally - you need to know the format very well ...(more)

Mike Kaganski gravatar imageMike Kaganski ( 2021-05-03 10:34:54 +0200 )edit