How to insert special characters as text?
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 2
- Joined: Wed May 11, 2016 5:19 pm
How to insert special characters as text?
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!
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!
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: How to insert special characters as text?
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
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
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service