Lines Matching refs:elem
99 for elem in result:
100 for e in elem:
107 for elem in result:
108 for e in elem:
114 for elem in result:
115 yield elem
127 for elem in result:
128 for e in elem.iter(tag):
129 if e is not elem:
138 for elem in result:
139 if elem in parent_map:
140 parent = parent_map[elem]
166 for elem in result:
167 if elem.get(key) is not None:
168 yield elem
175 for elem in result:
176 if elem.get(key) == value:
177 yield elem
183 for elem in result:
184 if elem.find(tag) is not None:
185 yield elem
192 for elem in result:
193 for e in elem.findall(tag):
195 yield elem
214 for elem in result:
216 parent = parent_map[elem]
218 elems = list(parent.findall(elem.tag))
219 if elems[index] is elem:
220 yield elem
247 def iterfind(elem, path, namespaces=None):
274 result = [elem]
275 context = _SelectorContext(elem)
283 def find(elem, path, namespaces=None):
285 return iterfind(elem, path, namespaces).next()
292 def findall(elem, path, namespaces=None):
293 return list(iterfind(elem, path, namespaces))
298 def findtext(elem, path, default=None, namespaces=None):
300 elem = iterfind(elem, path, namespaces).next()
301 return elem.text or ""