From: Axel Etzold Date: 2009-09-25T19:35:32+09:00 Subject: Re: Ordering XML Attributes with Hpricot? -------- Original-Nachricht -------- > Datum: Fri, 25 Sep 2009 10:54:03 +0900 > Von: Lance Pollard > An: ruby-talk@ruby-lang.org > Betreff: Re: Ordering XML Attributes with Hpricot? > This means though I have to do two passes on the XML: > > 1) Modify the nodes with data the way nokogiri or hpricot do it (xpath > and whatnot) > 2) Format the xml using regular expression on pure strings, not using > the xml parsing engines. > > Is that correct? Lance, I remember that Hpricot and Nokogiri both have pretty_print methods, but I have never used them. Also, I don't know whether "pretty" can be defined so that everybody agrees :) Best regards, Axel -- Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate f�r nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02