help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: one line big XML to multiline


From: Tassilo Horn
Subject: Re: one line big XML to multiline
Date: Mon, 02 Jul 2012 13:51:04 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)

Mihamina Rakotomandimby <mihamina@rktmb.org> writes:

Hi,

> I got a big one line XML file.
> I want to break the lines to make it more readable.
>
> Replacing "><" with "C-j" then indenting is the most obvious solution,
> but would you know a more elegant solution?

I'd go with some external tool such as xmllint which comes with libxml.

  $ xmllint --format --output formatted.xml original.xml

should do what you want.

Bye,
Tassilo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]