[Expat-discuss] Predefined Entity Expanding

Karl Waclawek karl@waclawek.net
Tue Jul 30 18:22: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>

Are you saying that you get this erroneous behaviour only if you clear
all handlers except the element and character data handlers?

On my little test app (with more handlers set) it works as expected.

Karl