xml entity feature..
by barkkathulla[ Edit ] 2012-09-22 11:48:57
THE XML SPECIFICATION PREDEFINES FIVE SPECIAL PIECES OF CODE FOR CHARACTERS THAT ARE NORMALLY RECOGNISED AS PART OF THE XML LANGUAGE ITSELF. THESE ARE CALLED âCHARACTER ENTITIESâ AND THEY MUST BE USED IF YOU WANT TO INCLUDE THOSE CHARACTERS AS PART OF AN ELEMENTâS CONTENT.CHARACTER ENTITIES USE A SPECIAL SYNTAX TO REPRESENT THE CHARACTER IN A WAY THAT AVOIDS THE XML PARSER INTERPRETING THE CHARACTER AS CODE.
< REPRESENTS THE â<â LEFT ANGLE BRACKET.
> REPRESENTS THE â<â RIGHT ANGLE BRACKET.
& REPRESENTS THE â&â AMPERSAND CHARACTER.
&APOS; REPRESENTS THE â`â SINGLE QUOTE APOSTROPHE.
"E;REPRESENTS THE âââ DOUBLE QUOTATION MARK.
XML ALSO SUPPORTS CHARACTER REFERENCES THAT CREATE A CHARACTER USING ITS UNICODE CHARACTER CODE. THESE ARE WRITTEN IN THE XML DOCUMENT AS â&#NNN;â WHERE âNNNâ IS THE REFERENCE NUMBER.THIS IS USEFUL TO ADD CHARACTERS THAT ARE NOT AVAILABLE ON YOU KEYBOARD.