views:

191

answers:

3

Hi,

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 configuration 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%5Feditor.html http://vim.wikia.com/wiki/Vim%5Fas%5FXML%5FEditor http://www.pinkjuice.com/howto/vimxml/

Regards, Cédric

A: 

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.

James Anderson
we often open a lot of file, so scp/sftp is not an easy solution
Cédric Girard
Worth looking at "Winscp" then. Make the remote directory look like a local folder on your windows box.
James Anderson
+2  A: 

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

schastar
+1  A: 

Emacs with tramp extension is what you need.

Levenson