Re: Pre-declared entity parsing in Expat

"Ben Allison" <[email protected]> Fri, 23 Sep 2011 11:13:53 -0400
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
It sounds as if you are not handling the possibility of multiple character
callbacks from within the same element

> Hi,
>
>           I am trying to parse the attribute values, with pre-defined
> entites embedded in an attribute as shown.
>
>           For Ex: -    "AT&T" is in the XML markup as "AT&amp;T"
>
> But the Expat XML parser is not changing "&amp;" back to "&"
> automatically when the document is processed. Also it is considering &
> as word delimiter. All in the end I get "AT" as the parsed string.
> Basically parser is ignoring characters after & also any special
> characters (<,>,',"), even though they are escaped (like &lt; &gt;
> &apos; &quot).
>
>
>
>
>
> Does pre-declared entity (inside an attribute value) parsing is
> supported in Expat?
>
>
>
> Thanks,
>
> Harsha
>
>
>
>
>
> _______________________________________________
> Expat-discuss mailing list
> [email protected]
> http://mail.libexpat.org/mailman/listinfo/expat-discuss
>