(self, attr)
text.string gives you text. This is for backwards
        compatibility for Navigable*String, but for CData* it lets you
        get the string without the CData wrapper.
text.string gives you text. This is for backwards
        compatibility for Navigable*String, but for CData* it lets you
        get the string without the CData wrapper.
text . string gives you text . This is for backwards compatibility for Navigable * String but for CData * it lets you get the string without the CData wrapper .
def __getattr__(self, attr):
        """text.string gives you text. This is for backwards
        compatibility for Navigable*String, but for CData* it lets you
        get the string without the CData wrapper."""
        if attr == 'string':
            return self
        else:
            raise AttributeError, "'%s' object has no attribute '%s'" % (self.__class__.__name__, attr)
def __getattr__ ( self , attr ) : if attr == 'string' : return self else : raise AttributeError , "'%s' object has no attribute '%s'" % ( self . __class__ . __name__ , attr )