code: def getAllAttributes(self, svgNode):
          "Return a dictionary of all attributes of svgNode or those inherited by it."
  
          dict = {}
  
          if node_name(svgNode.getparent()) == 'g':
              dict.update(self.getAllAttributes(svgNode.getparent()))
  
          style = svgNode.attrib.get("style")
          if style:
              d = self.parseMultiAttributes(style)
              dict.update(d)
  
          for key, value in svgNode.attrib.items():
              if key != "style":
                  dict[key] = value
  
          return dicf getAllAttributes(self, svgNode):
          "Return a dictionary of all attributes of svgNode or those inherited by it."
  
          dict = {}
  
          if node_name(svgNode.getparent()) == 'g':
              dict.update(self.getAllAttributes(svgNode.getparent()))
  
          style = svgNode.attrib.get("style")
          if style:
              d = self.parseMultiAttributes(style)
              dict.update(d)
  
          for key, value in svgNode.attrib.items():
              if key != "style":
                  dict[key] = value
  
          return dict
docs: Return a dictionary of all attributes of svgNode or those inherited by it.