Re: Convert xml symbol notation

2007-04-07 Thread Gabriel Genellina
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

Re: Convert xml symbol notation

2007-04-07 Thread Martin v. Löwis
>> 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

Re: Convert xml symbol notation

2007-04-07 Thread Martin v. Löwis
> 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

Re: Convert xml symbol notation

2007-04-07 Thread Gabriel Genellina
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

Re: Convert xml symbol notation

2007-04-07 Thread dumbkiwi
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 > >

Re: Convert xml symbol notation

2007-04-06 Thread Gabriel Genellina
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

Convert xml symbol notation

2007-04-06 Thread dumbkiwi
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/