Lines Matching full:namespaces
14 # 2007-11-30 fl added namespaces support
73 def xpath_tokenizer(pattern, namespaces=None):
79 if not namespaces:
81 yield token[0], "{%s}%s" % (namespaces[prefix], uri)
247 def iterfind(elem, path, namespaces=None):
258 next = iter(xpath_tokenizer(path, namespaces)).next
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()