xmlread

Changeset

1:7bf591e67fbd
2012-03-30 Paul Boddie raw files shortlog changelog graph Changed the handler invocation to employ the current text fragments list as well as the current element's textual content.
xmlread.py (file)
     1.1 --- a/xmlread.py	Thu Mar 29 22:35:06 2012 +0200
     1.2 +++ b/xmlread.py	Fri Mar 30 00:26:13 2012 +0200
     1.3 @@ -56,7 +56,7 @@
     1.4          for n in (name, None):
     1.5              handler = self.handlers.get(n)
     1.6              if handler:
     1.7 -                handler(name, self.elements, self.attributes, "".join(self.text[-1]))
     1.8 +                handler(name, self.elements, self.attributes, self.text, "".join(self.text[-1]))
     1.9                  break
    1.10  
    1.11  # vim: tabstop=4 expandtab shiftwidth=4