Lines Matching full:namespaces
289 def find(self, path, namespaces=None):
293 *namespaces* is an optional mapping from namespace prefix to full name.
298 return ElementPath.find(self, path, namespaces)
300 def findtext(self, path, default=None, namespaces=None):
305 *namespaces* is an optional mapping from namespace prefix to full name.
312 return ElementPath.findtext(self, path, default, namespaces)
314 def findall(self, path, namespaces=None):
318 *namespaces* is an optional mapping from namespace prefix to full name.
323 return ElementPath.findall(self, path, namespaces)
325 def iterfind(self, path, namespaces=None):
329 *namespaces* is an optional mapping from namespace prefix to full name.
334 return ElementPath.iterfind(self, path, namespaces)
632 def find(self, path, namespaces=None):
638 *namespaces* is an optional mapping from namespace prefix to full name.
652 return self._root.find(path, namespaces)
654 def findtext(self, path, default=None, namespaces=None):
660 *namespaces* is an optional mapping from namespace prefix to full name.
674 return self._root.findtext(path, default, namespaces)
676 def findall(self, path, namespaces=None):
682 *namespaces* is an optional mapping from namespace prefix to full name.
696 return self._root.findall(path, namespaces)
698 def iterfind(self, path, namespaces=None):
704 *namespaces* is an optional mapping from namespace prefix to full name.
718 return self._root.iterfind(path, namespaces)
773 qnames, namespaces = _namespaces(self._root, default_namespace)
775 serialize(write, self._root, qnames, namespaces,
838 # identify namespaces used in this tree
844 namespaces = {}
846 namespaces[default_namespace] = ""
853 prefix = namespaces.get(uri)
857 prefix = "ns%d" % len(namespaces)
859 namespaces[uri] = prefix
875 # populate qname and namespaces table
896 return qnames, namespaces
898 def _serialize_xml(write, elem, qnames, namespaces,
917 if items or namespaces:
918 if namespaces:
919 for v, k in sorted(namespaces.items(),
956 def _serialize_html(write, elem, qnames, namespaces, **kwargs):
973 if items or namespaces:
974 if namespaces:
975 for v, k in sorted(namespaces.items(),