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

Method getChildren

recipes/Python/577451_Easy_XML/recipe-577451.py:29–31  ·  view source on GitHub ↗

Returns a list of child nodes having the specified tag.

(self, tag)

Source from the content-addressed store, hash-verified

27 return XmlNode(self.elem.getElementsByTagName(tag)[0])
28
29 def getChildren(self, tag):
30 """Returns a list of child nodes having the specified tag."""
31 return [XmlNode(x) for x in self.elem.getElementsByTagName(tag)]

Callers 3

printLangFunction · 0.45
rec_nodeFunction · 0.45
rec_nodeFunction · 0.45

Calls 1

XmlNodeClass · 0.70

Tested by

no test coverage detected