The symbols like &, <, > etc., has special
meaning in XML. So to display the symbols in xml file as it is there is special
code associated with each symbol.
Code
|
Meaning
|
&
|
Creates & character
|
<
|
Creates < character
|
>
|
Creates > character
|
"
|
Creates “ character
|
'
|
Creates ‘ character
|
<?xml version="1.0" encoding="UTF-8"?> <books> <book> <name>Let Us C</name> <author>Yashwant Kanetkar</author> <price>Price is < 245.00 & > 230</price> </book> </books>
Prevoius Next Home
No comments:
Post a Comment