MCPcopy Create free account
hub / github.com/ActiveState/code / AddChild

Method AddChild

recipes/Python/149368_xml2obj/recipe-149368.py:21–23  ·  view source on GitHub ↗

Add a reference to a child element

(self,element)

Source from the content-addressed store, hash-verified

19 self.children = []
20
21 def AddChild(self,element):
22 'Add a reference to a child element'
23 self.children.append(element)
24
25 def getAttribute(self,key):
26 'Get an attribute value'

Callers 1

StartElementMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected