Problem with parsing XML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • James Laamnna

    Problem with parsing XML

    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?

    Thanks.
  • Jon-Pierre Gentil

    #2
    Re: Problem with parsing XML

    On Sun, 2004-03-14 at 21:01, James Laamnna wrote:[color=blue]
    > 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?[/color]

    Use DOCTYPE entity declarations?

    Like this:

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

    You can define &eacute too.

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

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.4 (GNU/Linux)

    iEYEABECAAYFAkB VK3wACgkQOrVFma Ibww7wGgCgi/im2o1vlr06ji5dv wJJ/iek
    pbwAn0m8t51K6Ca QD0DFFQvaS5rupj pe
    =ATXD
    -----END PGP SIGNATURE-----

    Comment

    Working...