ParsedXML getElementsByTagName() from document node broken

[email protected] Wed, 28 Aug 2002 16:41:03 -0700
Newsgroups gmane.comp.web.zope.parsed-xml
Message-ID <AA7A72A46469D411B8B300508BE329500543191E@desi2>
Hey all... I know this list is terribly quiet, so I hope I'm not shouting
into an empty forest here, but I'm encountering something I think is a bug
with ParsedXML that is particularly frustrating:

The code for ParsedXML.getElementsByTagName() is flat out broken when called
on the ParsedXML object (document node).  

The following doesn't work, because it raises an attribute error for
__getattr__

    # methods that override ZDOM methods that are incorrect
    #

    def getElementsByTagName(self, tagName):
        return self.__getattr__("getElementsByTagName")(tagName)

    def hasChildNodes(self): 
        return self.__getattr__("hasChildNodes")()


I have a bunch of reader components created using PyDOM as a reference
implementation, and most of these components obtain the top-level node in
the document by calling getElementsByTagName().  I would like to try and fix
ParsedXML instead of rewrite (already DOM compliant) code for all the
methods in my reader components, but I'm not sure where to start.

Any pointers?

Sean

+-----------------------------------------------------------
| Sean Upton
|  Site Technology Supervisor             SignOnSanDiego.com
|  Development & Integration     The San Diego Union-Tribune
|  619.718.5241                     [email protected]
|        PATH_TO_THE_DARK_SIDE = 'c:\winnt\system32'
+-----------------------------------------------------------