Use of special characters in XML

XML syntax uses some characters for tags and attributes it is not possible to directly use those characters inside XML tags or attribute values.

CodeNameDisplayed as
Horizontal tabnon-printing
Line feednon-printing
Carriage Returnnon-printing
Spacenon-printing
!Exclamation mark!
"Quotation mark
#Number sign#
$Dollar sign$
%Percent sign%
&Ampersand&
'Apostrophe
(Left parenthesis(
)Right parenthesis)
*Asterisk*
+Plus sign+
,Comma
,
-Hyphen
.Period.
/Slash/
:Colon:
;
Semi-colon
;
<
Less than
<
=Equals sign=
>Greater than
>
?Question mark?
@
At
@
[
Left square bracket
[
\Blackslash\
]Right square bracket]
^Caret^
_Underscore_
`Acute accent`
{Left curly brace{
|Vertical bar|
}Right curly brace}
~Tilde~

Leave a comment

Your email address will not be published. Required fields are marked *