Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/11/2011 09:52 PM, Simon Cropper wrote:

   cat content.xml | sed -e 's/>/>\n/g' > content_with_linebreaks.xml


Thats potentially dangerous, as you could have embedded greater than
signs in your data.

Use XML Copy Editor (http://xml-copy-editor.sourceforge.net/) to pretty
print and work on the pretty print copy.

Or

Use xmllint to pretty print a version via :
xmllint --format content.xml >content.xml.pp

Better still canonicalize the xml and then pretty print it if you want
to use any diff routines to highlight changes between versions.

See http://en.wikipedia.org/wiki/Canonical_XML

xmllint --c14n content.xml|xmllint --format - >
content.xml.cannonicalized.pp

- -- 
Bill Gradwohl
Roatan, Honduras
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk5FQPUACgkQ7Orvev+eC8on3ACbBxjH0z0vzci+A8sesEpwX4J1
NWAAnjjuxRJaOSPvtIZtaY3/2SdwIMQ2
=Yb0L
-----END PGP SIGNATURE-----

-- 
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.