Re: Problem with parsing XML
From: Jon-Pierre Gentil (jgentil_at_sebistar.net)
Date: 03/15/04
- Next message: Tim Roberts: "Re: random.random - Interpreter works, Script doesn't?"
- Previous message: Stephen Horne: "Re: Is reverse reading possible?"
- In reply to: James Laamnna: "Problem with parsing XML"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 " ">]>
You can define é too.
--
Jon-Pierre Gentil : PGP Key ID 0xA21BC30E
AIM: Zenethian : Jabber: jgentil@jabber.org
- application/pgp-signature attachment: This is a digitally signed message part
- Next message: Tim Roberts: "Re: random.random - Interpreter works, Script doesn't?"
- Previous message: Stephen Horne: "Re: Is reverse reading possible?"
- In reply to: James Laamnna: "Problem with parsing XML"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]