Martin v. Löwis wrote:
> >> I'm working on a script to download and parse a web page, and it
> >> includes xml symbol notation, such as ' for the ' character. Does
> >
> > Try the htmlentitydefs module.
>
> That won't help: this is a character reference, not an entity reference.
> htmlentitydefs
>> I'm working on a script to download and parse a web page, and it
>> includes xml symbol notation, such as ' for the ' character. Does
>> anyone know of a pre-existing python script/lib to convert the xml
>> notation back to the actual symbol it represents?
>
> Try the htmlentitydefs module.
T
> I'm working on a script to download and parse a web page, and it
> includes xml symbol notation, such as ' for the ' character. Does
> anyone know of a pre-existing python script/lib to convert the xml
> notation back to the actual symbol it represents?
If you have this given in an XML file (ra
dumbkiwi wrote:
> On Apr 7, 5:23 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
>>Try the htmlentitydefs module.
>
> Is that a standard module? I can't see it anywhere - googled it.
Sure! For quite a while, at least, since Python 1.5 (I can't go earlier
in time...)
http://svn.python.org/v
On Apr 7, 5:23 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> dumbkiwi wrote:
> > I'm working on a script to download and parse a web page, and it
> > includes xml symbol notation, such as ' for the ' character. Does
> > anyone know of a pre-existing python script/lib to convert the xml
> >
dumbkiwi wrote:
> I'm working on a script to download and parse a web page, and it
> includes xml symbol notation, such as ' for the ' character. Does
> anyone know of a pre-existing python script/lib to convert the xml
> notation back to the actual symbol it represents?
Try the htmlentitydefs m
Hi,
I'm working on a script to download and parse a web page, and it
includes xml symbol notation, such as ' for the ' character. Does
anyone know of a pre-existing python script/lib to convert the xml
notation back to the actual symbol it represents?
--
http://mail.python.org/mailman/listinfo/