How to insert special characters as text?

Questions about XML that are not covered by the other forums should go here.
pavelb
Posts: 2

How to insert special characters as text?

Wed May 11, 2016 5:24 pm

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: 2443

Re: How to insert special characters as text?

Wed May 11, 2016 5:39 pm

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

Re: How to insert special characters as text?

Wed May 11, 2016 6:18 pm

Thank you, Adrian, that worked!

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 0 guests