Lines Matching refs:elem
97 for elem in elemlist:
98 elem = self.__trimElem(elem)
99 self.__generateFile(elem)
103 def __trimElem(self, elem):
105 for child in elem.childNodes:
111 elem.removeChild(child)
117 return elem
120 def __generateFile(self, elem):
123 filename = os.path.join(self.out, elem.getAttribute("name").replace(".", "_").lower() + ".xml")
128 self.root.appendChild(elem)
136 def __removeAllChild(self, elem):
138 for child in elem.childNodes:
142 elem.removeChild(child)