How to insert special characters as text?

Questions about XML that are not covered by the other forums should go here.
pavelb
Posts: 2
Joined: Wed May 11, 2016 5:19 pm

How to insert special characters as text?

Post by pavelb »

Hello,

I'm trying to produce a DTIA document and I need to use the "&" character as plain text but the same character is also used as a tag and so I receive an error. How can I insert the character as text?

Thanks!
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: How to insert special characters as text?

Post by adrian »

Hi,

If you are editing in Author mode, Oxygen will automatically escape XML special characters for you as you type or paste them. So even though you type &, it will appear as & in Text mode.
If you are working in Text mode, you will have to escape them. You can select the text in the editor (make sure there are no tags), right click on the selection and from the contextual menu use Source > Escape Selection, and press OK.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
pavelb
Posts: 2
Joined: Wed May 11, 2016 5:19 pm

Re: How to insert special characters as text?

Post by pavelb »

Thank you, Adrian, that worked!
Post Reply