[Expat-discuss] Predefined Entity Expanding

Mark Mitchenall mark@mitchenall.com
Tue Jul 30 16:21:02 2002


Is Expat supposed to expand predefined entities in the character data
handler?

e.g. for the following document, with just the element and character data
handlers enabled to simply output the returned text and using Expat
1.95.4...

<?xml version="1.0" encoding="UTF-8"?>
<doc>
    Test &amp; more text
</doc>

.... I get the following result ....

<doc>
Test
more text
</doc>

Instead of the ...

<doc>
Test & more text
</doc>

... which I'd hoped for.  Makes no difference whether I define the entity or
not.  Also, other entities in the form...

<!ENTITY at_new "&64;">

... don't seem to get expanded, but all others do.

Is this normal?  Is there another handler I should be using for these?

TIA,

Mark

-- 
Mark Mitchenall
Principal Consultant
mitchenall.com

Email:  mark@mitchenall.com
Tel:     +44(0)20 8452 3031
Mobile:  +44(0)7850 847 543
http://www.mitchenall.com/