[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: one line big XML to multiline
From: |
Matt McClure |
Subject: |
Re: one line big XML to multiline |
Date: |
Thu, 5 Jul 2012 18:46:45 -0400 |
On Mon, Jul 2, 2012 at 7:51 AM, Tassilo Horn <tassilo@member.fsf.org> wrote:
> 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.
I prefer `xmlstarlet`[1]. To format a buffer:
C-x h C-u M-| xml fo RET
[1]: http://xmlstar.sourceforge.net/docs.php
--
Matt McClure
http://www.matthewlmcclure.com
http://www.mapmyfitness.com/profile/matthewlmcclure