On May 30, 2008, at 2:32 AM, dare ruby wrote:

> Dear all,
>
> Iam in process of building a parser. I need to convert the numeric
> character reference to corresponding ascii.
> ...
> Regards,
> Jose Martin


You might consider googling "lexical analysis" because the particular  
thing you describe is often handled at an earlier point in the process  
(even if only a few lines ;-)  In particular, /&#([0-9]+);/ and / 
&#x([0-9A-Fa-f]+);/ are, as you said, handled slightly differently  
even though they both involve a numeric to character representation.

-Rob

Rob Biedenharn		http://agileconsultingllc.com
Rob / AgileConsultingLLC.com