How to Use Special Character Entities in XML Documents Effectively

How to Use Special Character Entities in XML Documents Effectively

David Lv8

How to Use Special Character Entities in XML Documents Effectively

Table of Contents

Disclaimer: This post includes affiliate links

If you click on a link and make a purchase, I may receive a commission at no extra cost to you.

XML escaped characters

The Extensible Markup Language (XML) has a set of special characters that are used in its syntax.

As these characters are used to define XML components like elements or tags and in order for them to be correctly interpreted, they cannot be used in the XML file to represent data rather than markup of the XML file.

The solution to the above limitation is to use a special character reference as an alias instead of that actual character.

At build time, Advanced Installer will automatically perform the XML special characters escape for all the XML data specified in Edit XML File Dialog .

For example, if you add an existing XML file or create a new one in your project and insert a special XML character in one of its elements, let’s say < character, when you will build the project, Advanced Installer will automatically escape this character, replacing it with <. The result is that the XML document installed by the built package will contain the escaped character making possible the correct interpretation of the XML code.

XML special characters that get escaped at install time

Special character escaped form gets replaced by
Ampersand & &
Less-than < <
Greater-than > >
Quotes "
Apostrophe '

Video tutorial

Did you find this page useful?

Please give it a rating:

Thanks!

Report a problem on this page

Information is incorrect or missing

Information is unclear or confusing

Something else

Can you tell us what’s wrong?

Send message

Also read:

  • Title: How to Use Special Character Entities in XML Documents Effectively
  • Author: David
  • Created at : 2024-11-14 22:07:16
  • Updated at : 2024-11-21 16:11:04
  • Link: https://fox-zaraz.techidaily.com/how-to-use-special-character-entities-in-xml-documents-effectively/
  • License: This work is licensed under CC BY-NC-SA 4.0.