Re: python 2.5 cElementTree entity troubles

2007-09-16 Thread Diez B. Roggisch
Stefan Behnel schrieb: > Stefan Behnel wrote: >> Diez B. Roggisch wrote: >>> Any suggestions on how to teach the built-in ET-parser entities? >> As you already do it in your code. >> >> http://effbot.org/elementtree/elementtree-xmlparser.htm#tag-ET.XMLParser.entity > > Hmmm, I never needed this, b

Re: python 2.5 cElementTree entity troubles

2007-09-15 Thread Stefan Behnel
Stefan Behnel wrote: > Diez B. Roggisch wrote: >> Any suggestions on how to teach the built-in ET-parser entities? > > As you already do it in your code. > > http://effbot.org/elementtree/elementtree-xmlparser.htm#tag-ET.XMLParser.entity Hmmm, I never needed this, but the test doesn't work for m

Re: python 2.5 cElementTree entity troubles

2007-09-15 Thread Diez B. Roggisch
Stefan Behnel schrieb: > Diez B. Roggisch wrote: >> Any suggestions on how to teach the built-in ET-parser entities? > > As you already do it in your code. > > http://effbot.org/elementtree/elementtree-xmlparser.htm#tag-ET.XMLParser.entity > > But I guess your version of cET is just too old. Un

Re: python 2.5 cElementTree entity troubles

2007-09-15 Thread Stefan Behnel
Diez B. Roggisch wrote: > Any suggestions on how to teach the built-in ET-parser entities? As you already do it in your code. http://effbot.org/elementtree/elementtree-xmlparser.htm#tag-ET.XMLParser.entity But I guess your version of cET is just too old. Stefan -- http://mail.python.org/mailma

python 2.5 cElementTree entity troubles

2007-09-15 Thread Diez B. Roggisch
Hi, this snippet, adapted from http://svn.effbot.org/public/tags/celementtree-1.0-20050126/selftest.py fails miserably with an unknown entity exception: from xml.etree.cElementTree import * ENTITY_XML = """ &entity; """ parser = XMLTreeBuilder() parser.entity["entity"] = "text" print parser.e