[XML-SIG] location handling in pyexpat

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sat, 11 Nov 2000 12:28:27 +0100


> This example is a (useless) python script. 
> 
> $ Example.py Element_Name XML_File
> 
> It uses pyexpat to scan the file XML_File and display the position
> of the elements named Element_Name.
> 
> Do you think these changes can become part of the next version of 
> pyxml, or do I need to rethink about it ?

I guess you should. When I run your example with some xml file in
PyXML 0.6.1, e.g.  as

  python Example.py history commonEuc.xml 

it prints

  Found history element at (2,9)

So it is not clear to me what bug you try to fix - it already gives
you location information even without your patch.

Regards,
Martin