From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: one line big XML to multiline Date: Mon, 02 Jul 2012 13:51:04 +0200 Message-ID: <87ehou9yaf.fsf@thinkpad.tsdh.de> References: <4FF18311.4060002@rktmb.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1341229902 15997 80.91.229.3 (2 Jul 2012 11:51:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2012 11:51:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 02 13:51:42 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SlfAK-0002gT-Q6 for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Jul 2012 13:51:40 +0200 Original-Received: from localhost ([::1]:42301 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlfAJ-0003Ef-S6 for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Jul 2012 07:51:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlfAB-0003EH-6H for help-gnu-emacs@gnu.org; Mon, 02 Jul 2012 07:51:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SlfA8-0006bM-39 for help-gnu-emacs@gnu.org; Mon, 02 Jul 2012 07:51:30 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:40121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlfA7-0006ak-Re for help-gnu-emacs@gnu.org; Mon, 02 Jul 2012 07:51:28 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SlfA3-0002A4-DN for help-gnu-emacs@gnu.org; Mon, 02 Jul 2012 13:51:23 +0200 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Jul 2012 13:51:23 +0200 Original-Received: from tassilo by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Jul 2012 13:51:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:ZbmHHR6nycQ0jdi/mb6N0XG7Nus= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85618 Archived-At: Mihamina Rakotomandimby 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