On 4/25/08 10:33 PM, in article 8A9B62C0-9280-4236-9A3F-33F4538780E4@gmail.com, "s.ross" <cwdinfo@gmail.com> wrote:

Well... you could do this on your file:

cat foo.xml | ruby -e 'puts STDIN.read.gsub(/\>\</, ">\n<")' | mate

Kind of crude. Why wouldn't you just run the file thru "tidy"? m.

--
matt neuburg, phd = matt@tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>