[Expat-discuss] Issue in parsing xml

Aleix Conchillo Flaqué aleix at member.fsf.org
Fri Oct 30 16:45:25 CET 2009


On Fri, Oct 30, 2009 at 14:22, Sivaprasad Boddu
<sivaprasad.boddu at netenrich.com> wrote:
> Hi,
>
>   This is Siva Prasad.I'm developing a c++ project in which I use Expat XML parser to parse.
>
>   While parsing XML which consists Special characters inside tag like <val>jkghtu&rur</val>,there is problem.The value is not get parsed completely,only the values till "&" is returned by the parser as "jkghtu".
>
>   Is there any issue with Expat (to parse Special characters inside XML) or am I missing anything?
>
>  Please clarify me.
>

& must not be used literally, it must be escaped, see:

http://www.w3.org/TR/REC-xml/#syntax
http://www.w3.org/TR/REC-xml/#dt-escape


More information about the Expat-discuss mailing list