Re: Problem with parsing XML

From: Jon-Pierre Gentil (jgentil_at_sebistar.net)
Date: 03/15/04


Date: Sun, 14 Mar 2004 22:05:17 -0600
To: python-list@python.org


On Sun, 2004-03-14 at 21:01, James Laamnna wrote:
> So I have an XML document with é and other non-XML chars.
> I'm wondering the best way to parse this using xml.dom.minidom.
>
> I've tried using a translation document to transmate é to é
> But now the characters just disappear.
> Any suggestions?

Use DOCTYPE entity declarations?

Like this:

<!DOCTYPE xsl:style*** [<!ENTITY nbsp "&#160;">]>

You can define &eacute too.

-- 
Jon-Pierre Gentil      :   PGP Key ID 0xA21BC30E
    AIM: Zenethian     :   Jabber: jgentil@jabber.org