From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matt McClure Newsgroups: gmane.emacs.help Subject: Re: one line big XML to multiline Date: Thu, 5 Jul 2012 18:46:45 -0400 Message-ID: References: <4FF18311.4060002@rktmb.org> <87ehou9yaf.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1341528433 3652 80.91.229.3 (5 Jul 2012 22:47:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2012 22:47:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 06 00:47:12 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 1SmupI-0005HI-FB for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jul 2012 00:47:08 +0200 Original-Received: from localhost ([::1]:49075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmupH-0001UH-Fn for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jul 2012 18:47:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Smup0-0000xN-0E for help-gnu-emacs@gnu.org; Thu, 05 Jul 2012 18:46:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Smuoy-0003xS-2e for help-gnu-emacs@gnu.org; Thu, 05 Jul 2012 18:46:49 -0400 Original-Received: from mail-gh0-f169.google.com ([209.85.160.169]:64966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Smuox-0003wK-Rh for help-gnu-emacs@gnu.org; Thu, 05 Jul 2012 18:46:47 -0400 Original-Received: by ghrr18 with SMTP id r18so9356334ghr.0 for ; Thu, 05 Jul 2012 15:46:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/tSbSQzAeFnaBw17BbVaH5I95nyv3B4yHY8qoLoyG+I=; b=TAkZi1BdvVhg+sRW5Q6YvTTb586gnTab/Fz2obOljmBUmNgdBeb7B5Anr0RH3XnuJr xsmUmtsjB/PcQaEFhjGVUsVuweEsJrehAgluwkpyQtW5X+cL0duFOCJ7Vsy4SvgvWJNf g9HRfDQG0uidREYufKFywkduMZ3owDiaRN834OXo4ssqHGqlxiWxYqMjYhDJJOpDfhtG bSSxOWCzYBee6q+9bFqTM6iQKSHfLu90QlAxPY+buIr7kQMRRj49nE58KTyfASZ+qaft tm8k+OEPqVqJAFEkDONQXrN/6kR0j9TWf5ZpgAbU1Mh1sriP0RD5AS57QF67JzRxFAV/ PI8A== Original-Received: by 10.50.41.226 with SMTP id i2mr1148685igl.4.1341528405731; Thu, 05 Jul 2012 15:46:45 -0700 (PDT) Original-Received: by 10.50.100.231 with HTTP; Thu, 5 Jul 2012 15:46:45 -0700 (PDT) In-Reply-To: <87ehou9yaf.fsf@thinkpad.tsdh.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.169 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:85691 Archived-At: On Mon, Jul 2, 2012 at 7:51 AM, Tassilo Horn 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