Pre-declared entity parsing in Expat

"Harsha Billalli" <[email protected]> Mon, 19 Sep 2011 12:57:59 +0530
Newsgroups gmane.text.xml.expat.general
Message-ID <6B3D985D3827D446B2CBAB549B4A56B904376E84@indiaexchange.inovate.inovate.com>
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