text-mode editor for xml
vu pham
vu at sivell.com
Thu Mar 5 13:33:26 PST 2009
James McDonald wrote:
> 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
>
Thanks, James. I like this xmllint because it already is in my RH
servers. I just didn't know about it. tidy is cool, too, but it looks
like it not include in the RHEL or Fedora repos.
Vu
More information about the Linux-users
mailing list