From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Bokma Newsgroups: gmane.emacs.help Subject: Re: one line big XML to multiline Date: Mon, 02 Jul 2012 10:13:57 -0500 Organization: Castle Amber Message-ID: <87d34e42mi.fsf@castleamber.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1341242132 25911 80.91.229.3 (2 Jul 2012 15:15:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2012 15:15:32 +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 17:15:31 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 1SliLS-0003fq-BR for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Jul 2012 17:15:22 +0200 Original-Received: from localhost ([::1]:56589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SliLO-0002M4-1k for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Jul 2012 11:15:18 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!newsfeed101.telia.com!starscream.dk.telia.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Injection-Info: mx04.eternal-september.org; posting-host="u2cVduWifo1ZMcP7VX65jw"; logging-data="28298"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/VspTXQ6Vr/XAJ9thcW2SI7GM1A4nMVUI=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Url: http://johnbokma.com/ Cancel-Lock: sha1:pG24iXYwapuMeEBOGT3wcwmAdBE= sha1:EvvPAj2Rai2bmxir00Cg1QT4pTI= Original-Xref: usenet.stanford.edu gnu.emacs.help:193236 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:85625 Archived-At: Mihamina Rakotomandimby writes: > Hi all, > > 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'm using Emacs 23 (FC17) with nXml or sgml-mode usable. > > Thank you. I've used this in the past, with success: http://blog.bookworm.at/2007/03/pretty-print-xml-with-emacs.html -- John Bokma j3b Blog: http://johnbokma.com/ Perl Consultancy: http://castleamber.com/ Perl for books: http://johnbokma.com/perl/help-in-exchange-for-books.html