XML Editor for Linux via SSH access?
I need to edit XML files on a small Linux box that we have created. We have only SSH access on theses boxes. Is there a dedicated XML editor, or a con开发者_高级运维figuration for Vim/Emacs to edit XML easily, with integrated XSD validation?
I found some tutorials for Vi http://oss.sgi.com/LDP/HOWTO/Vim-HOWTO/xml_editor.html http://vim.wikia.com/wiki/Vim_as_XML_Editor http://www.pinkjuice.com/howto/vimxml/
Regards, Cédric
Emacs has XML support out of the box via the PSGML mode. It supports DTD validation, auto tag closing, sytax-coloring, etc.
I have used another package though, called nXML, because I needed schema support.
http://www.thaiopensource.com/nxml-mode
Emacs with tramp extension is what you need.
vim should recognise the xml syntax if you switch highlighting on. Otherwise, as XML is plain text, you can quite happily edit with vim or vi -- but with no syntax checks.
If you have ssh running you should be able to use the secure copy command "scp" to move the file to and from your local machine edit it with your favourate tool.
精彩评论