Friday 7 November 2014

Special Symbols


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
&amp;
Creates & character
&lt;
Creates < character
&gt;
Creates > character
&quot;
Creates “ character
&apos;
Creates ‘ character

<?xml version="1.0" encoding="UTF-8"?>

<books>
	<book>
		<name>Let Us C</name>
		<author>Yashwant Kanetkar</author>
		<price>Price is &lt; 245.00 &amp; &gt; 230</price>
	</book>
</books> 
 

Prevoius                                                 Next                                                 Home

No comments:

Post a Comment