text-mode editor for xml

vu pham vu at sivell.com
Wed Mar 4 05:25:47 PST 2009


Kurt Wall wrote:
> On Tue, Mar 03, 2009 at 03:32:26PM -0600, vu pham wrote:
>> I have to edit an xml file in raw format. This file has almost no CR/LF  
>> and put all keys with their brackets in one line.
>> Does vi has option to reformat it with appropriate cr/lf so it is easier  
>> to read ? Or any other text editor ?
>>
>> Btw, it must in in text mode, not X.
> 
> sed, perl, or python or any text processing language. I wouldn't want
> to do this interactively.
> 


Thanks, Kurt, but I am not a sed/perl/python guru :( although I can use 
them. I am sort of lazy, too :)

Right now I use xmlstarlet but I believe after two or three days playing 
around with the cluster sutff, I will remember most of  their 
keys/syntax and can just vi that whole config file directly, instead of 
mixing between using their tools and manually adding more stuff.

Vu



More information about the Linux-users mailing list