text-mode editor for xml
James McDonald
james at jamesmcdonald.id.au
Thu Mar 5 12:26:59 PST 2009
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
>
xmllint --format xmlfile.xml
tidy -xml -indent -w 0 xmlfile.xml
More information about the Linux-users
mailing list