Parsing XML with ElementTree (unicode problem?)

Steve Holden steve at holdenweb.com
Tue Jul 24 06:56:22 EDT 2007


Marc 'BlackJack' Rintsch wrote:
> On Tue, 24 Jul 2007 05:57:26 +0000, oren.tsur wrote:
> 
>> but the thing is that the parser parses it all right from the web (the
>> amazon response) but fails to parse the locally saved file.
> 
> I've just used wget to fetch that URL and `ElementTree` parses that local
> file without problems.
> 
> Maybe you should stop searching the explanation within Python or
> `ElementTree` and accept having a broken XML file on your disk.  :-)
> 
> Have you checked the local XML file with something like `xmllint` or
> another XML parser already?
> 
> Ciao,
> 	Marc 'BlackJack' Rintsch

You should also realise that your posting compromised the Access ID 
embedded in the URL. If that was live it might be a good idea to replace it.

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd           http://www.holdenweb.com
Skype: holdenweb      http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------




More information about the Python-list mailing list