[Libreoffice] XML pretty printer (was: Where did Setup.xcu go?)

Eike Rathke ooo at erack.de
Wed Aug 10 14:28:42 PDT 2011


On Wednesday, 2011-08-10 17:48:14 +0200, Stephan Bergmann wrote:

> For performance reasons, it (like all the other xcu files, too) got
> folded into a single large main.xcd.  (Beware, very long lines.  You
> may want to pipe it through an XML pretty printer if you want to edit
> it manually.)

For which I always recommend xmlpp,

Works also nicely for inspecting ODF files, my viewodf wrapper:

if [ ! -f "$1" ]; then
    echo "Usage: $0 ODF-file"
    exit 1
unzip -p "$1" content.xml styles.xml settings.xml | xmlpp.pl | vim -

Similar for OOXML spreadsheet files:

if [ ! -f "$1" ]; then
    echo "Usage: $0 MOOXML-file"
    exit 1
unzip -p "$1" 'xl/workbook.xml' 'xl/worksheets/*.xml' 'xl/styles.xml' | xmlpp.pl | vim -


 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110810/25235f26/attachment-0001.pgp>

More information about the LibreOffice mailing list