Lines Matching refs:elem
99 for elem in result:
100 for e in elem:
107 for elem in result:
108 yield from elem
128 for elem in result:
129 for e in elem.iter(tag):
130 if e is not elem:
139 for elem in result:
140 if elem in parent_map:
141 parent = parent_map[elem]
173 for elem in result:
174 if elem.get(key) is not None:
175 yield elem
182 for elem in result:
183 if elem.get(key) == value:
184 yield elem
190 for elem in result:
191 if elem.find(tag) is not None:
192 yield elem
200 for elem in result:
201 for e in elem.findall(tag):
203 yield elem
207 for elem in result:
208 if "".join(elem.itertext()) == value:
209 yield elem
232 for elem in result:
234 parent = parent_map[elem]
236 elems = list(parent.findall(elem.tag))
237 if elems[index] is elem:
238 yield elem
265 def iterfind(elem, path, namespaces=None):
297 result = [elem]
298 context = _SelectorContext(elem)
306 def find(elem, path, namespaces=None):
307 return next(iterfind(elem, path, namespaces), None)
312 def findall(elem, path, namespaces=None):
313 return list(iterfind(elem, path, namespaces))
318 def findtext(elem, path, default=None, namespaces=None):
320 elem = next(iterfind(elem, path, namespaces))
321 return elem.text or ""