XML editor with correct copy and paste?

I'm looking for an XML editor that allows me to type and copy and paste arbitrary text into an XML element or attribute without requiring me to go back and remove any characters that XML reserved objects (ampersands, angle brackets, or quotation marks) need to use. XMLSpy turned out to be short.

0


source to share


5 answers


Do you really expect the editor to know that a<b

it should avoid <

when you paste a<b/>

, but when you paste it shouldn't? It looks like a high order ...

After thinking about it a bit, I think that what you want can be achieved either with a dedicated command stand alone or in a dedicated editor mode.

A Google search reveals that ExchangerXML seems to offer the desired paste behavior.



Another option could be programmable text or an XML editor that might allow you to define a "macro" for "Insert text and process it after next string substitutions" (or alternatively, "do text substitutions on the clipboard" then paste ") I bet emacs can do this, but I'm not an emacs user.

Alternatively, you can use CDATA sections and paste text not hidden inside them. This will work in any editor:

<![CDATA[a<b]]>

      

+2


source


I just realized that I have Visual Studio 2005 and I have the behavior I am looking for.



+1


source


You can use Notepad ++ and the TextFX plugin for this.

Notepad ++ is a decent free programmer editor that does XML. Add the TextFX plugin and you get the TextFX | HTML encode.

0


source


Firstobject free XML editor for editable Windows tree view allows you to copy paste and edit element and attribute values ​​without worrying about these special characters (you will see the escaped values ​​in the text view on the right at the same time).

0


source


Be aware that this is probably already five years old, but xmetal is doing it.

0


source







All Articles