Re: [xml-dev] Internal entities removed from XML?

From
Tim Bray <>
To
Rich Salz <>
Date
2002-12-19T21:47:21Z
ID
<>
Thread
Re: [xml-dev] Internal entities removed from XML?
Rich Salz wrote:
>> Only benchmarking/profiling can tell
> 
> 
> It's hard to beat this:

Not that hard I'd say given that an XML processor has to recognize 
'quot' and 'apos' and 'gt'.


>         if ((*buff++ = *src++) == '&')
>         {
               switch *buff
               {
               case 'a':
                   // nother if here
               case 'q':
                   // insert code
               case 'l':
                   // insert code
               case 'g':
                   // insert code
               }