-----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