diff options
author | Paul Prescod <prescod@prescod.net> | 2000-07-04 03:39:33 (GMT) |
---|---|---|
committer | Paul Prescod <prescod@prescod.net> | 2000-07-04 03:39:33 (GMT) |
commit | 6c4753f925467e5908a43d2fec6d15b76e878d42 (patch) | |
tree | 6aeddeb00540c35075a55fc46c2398461cc66aef /Lib/xml/dom/pulldom.py | |
parent | 99b84bdaad28f6deba1462974cbe02ead36cbf75 (diff) | |
download | cpython-6c4753f925467e5908a43d2fec6d15b76e878d42.zip cpython-6c4753f925467e5908a43d2fec6d15b76e878d42.tar.gz cpython-6c4753f925467e5908a43d2fec6d15b76e878d42.tar.bz2 |
Used original SAX handling form.
Diffstat (limited to 'Lib/xml/dom/pulldom.py')
-rw-r--r-- | Lib/xml/dom/pulldom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/xml/dom/pulldom.py b/Lib/xml/dom/pulldom.py index 0c047f6..1f7c699 100644 --- a/Lib/xml/dom/pulldom.py +++ b/Lib/xml/dom/pulldom.py @@ -22,7 +22,7 @@ class PullDOM: def setDocumentLocator( self, locator ): pass - def startElement( self, tagName , attrs ): + def startElement( self, name, tagName , attrs ): if not hasattr( self, "curNode" ): # FIXME: hack! self.startDocument( ) @@ -42,7 +42,7 @@ class PullDOM: self.lastEvent=self.lastEvent[1] #self.events.append( (START_ELEMENT, node) ) - def endElement( self, name ): + def endElement( self, name, tagName ): node = self.curNode self.lastEvent[1]=[(END_ELEMENT, node), None ] self.lastEvent=self.lastEvent[1] |