Lines Matching refs:elem
35 for elem in list:
36 … if elem.childNodes[0].nodeType == elem.TEXT_NODE and len(elem.childNodes[0].data.strip()):
37 …topics.append(self.prepare_sdf_line(id=elem.getAttribute("id").strip(), text=elem.childNodes[0].da…
42 for elem in list:
43 if len(elem.getAttribute("title").strip()):
44 …titles.append(self.prepare_sdf_line(id=elem.getAttribute("id").strip(), text=elem.getAttribute("ti…
49 for elem in list:
50 if elem.childNodes[0].nodeType == elem.TEXT_NODE and elem.getAttribute("id").strip():
51 …obj = self.prepare_sdf_line(inputfile=inputfilename, lang=lang, id=elem.getAttribute("id").strip())
53 elem.childNodes[0].data = unicode(str(sdfdata[obj.get_id()].text),"utf8")
57 for elem in list:
58 …obj = self.prepare_sdf_line(inputfile=inputfilename, lang=lang, id=elem.getAttribute("id").strip())
59 if elem.getAttribute("id").strip() and sdfdata[obj.get_id()]:
60 elem.setAttribute("title", unicode(str(sdfdata[obj.get_id()].text),"utf8"))