[Expat-discuss] Encoding

Lin Shen lshen@cisco.com
Tue Apr 16 14:45:05 2002


That's why I couldn't find the right API. I'm using Expat 1.1 still.

lin

----- Original Message -----
From: "Fred L. Drake, Jr." <fdrake@acm.org>
To: "Lin Shen" <lshen@cisco.com>
Cc: <expat-discuss@lists.sourceforge.net>
Sent: Tuesday, April 16, 2002 12:31 PM
Subject: Re: [Expat-discuss] Encoding


>
> Lin Shen writes:
>  > Maybe I didn't state it clear in my last mail. What I'm looking for is
a way
>  > to get the encoding pesudo-attribute of the XML declaration. I'm not
sure
>  > which callback handler suits this case. I'm using element handler in my
>
> You're right; I did misunderstand.
>
> You should use the XML declaration handler, set using
> XML_SetXmlDeclHandler().  The version, encoding, and standalone values
> are passed to the handler as separate parameters.  You need to be
> using a 1.95.x version of Expat, though.
>
>
>   -Fred
>
> --
> Fred L. Drake, Jr.  <fdrake at acm.org>
> PythonLabs at Zope Corporation