code: def getElements(self,name=''):
  		'Get a list of child elements'
  		#If no tag name is specified, return the all children
  		if not name:
  			return self.children
  		else:
  			# else return only those children with a matching tag name
  			elements = []
  			for element in self.children:
  				if element.name == name:
  					elements.append(element)
  			return elementf getElements(self,name=''):
  		'Get a list of child elements'
  		#If no tag name is specified, return the all children
  		if not name:
  			return self.children
  		else:
  			# else return only those children with a matching tag name
  			elements = []
  			for element in self.children:
  				if element.name == name:
  					elements.append(element)
  			return elements
docs: Get a list of child elements