Returns the first child node having the specified tag.
(self, tag)
| 23 | return str(self.elem.attributes[name].value) |
| 24 | |
| 25 | def getChild(self, tag): |
| 26 | """Returns the first child node having the specified tag.""" |
| 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.""" |