text-mode editor for xml
Vu Pham
vu at sivell.com
Tue Mar 3 21:38:28 PST 2009
Jerry McBride wrote:
> I looked into this a while back. I was never satisfied by what I found. Your
> best bet is right a script that parses the xml and adds an LF after each
> closing tag. Then edit it via your favorite text editor (mine is aee) and go
> from there.
>
> In the gui environment I use XMLmind xmleditor (xxe). It's a java app, does
> everything I want or need...
>
Thanks, Jerry. I just found this one http://xmlstar.sourceforge.net/
I just need one function of it : format. Here is what I use:
# xml format /etc/cluster/cluster.conf > /etc/cluster/cluster.conf.save
( tools to create cluster.conf put all the xml keys/values into one line
:( )
Then I use vi to edit the cluster file.
Vu
>
>
> On Tuesday 03 March 2009 04:32:26 pm 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.
>>
>> Thanks,
>> Vu
>>
>> _______________________________________________
>> Linux-users mailing list ( Linux-users at linux-sxs.org )
>> Unsub/Password/Etc:
>> http://linux-sxs.org/mailman/listinfo/linux-users
>>
>> Need to chat further on this subject? Check out #linux-users on
>> irc.linux-sxs.org !
>
>
>
More information about the Linux-users
mailing list