Home | History | Annotate | Download | only in etree

Lines Matching full:namespaces

106     def find(self, element, tag, namespaces=None):
111 def findtext(self, element, tag, default=None, namespaces=None):
116 def iterfind(self, element, tag, namespaces=None):
123 def findall(self, element, tag, namespaces=None):
124 return list(self.iterfind(element, tag, namespaces))
358 # @keyparam namespaces Optional namespace prefix map.
362 def find(self, path, namespaces=None):
363 return ElementPath.find(self, path, namespaces)
370 # @keyparam namespaces Optional namespace prefix map.
377 def findtext(self, path, default=None, namespaces=None):
378 return ElementPath.findtext(self, path, default, namespaces)
384 # @keyparam namespaces Optional namespace prefix map.
389 def findall(self, path, namespaces=None):
390 return ElementPath.findall(self, path, namespaces)
396 # @keyparam namespaces Optional namespace prefix map.
401 def iterfind(self, path, namespaces=None):
402 return ElementPath.iterfind(self, path, namespaces)
690 # @keyparam namespaces Optional namespace prefix map.
694 def find(self, path, namespaces=None):
704 return self._root.find(path, namespaces)
711 # @keyparam namespaces Optional namespace prefix map.
718 def findtext(self, path, default=None, namespaces=None):
728 return self._root.findtext(path, default, namespaces)
734 # @keyparam namespaces Optional namespace prefix map.
739 def findall(self, path, namespaces=None):
749 return self._root.findall(path, namespaces)
756 # @keyparam namespaces Optional namespace prefix map.
761 def iterfind(self, path, namespaces=None):
771 return self._root.iterfind(path, namespaces)
816 qnames, namespaces = _namespaces(
820 serialize(write, self._root, encoding, qnames, namespaces)
832 # identify namespaces used in this tree
838 namespaces = {}
840 namespaces[default_namespace] = ""
850 prefix = namespaces.get(uri)
854 prefix = "ns%d" % len(namespaces)
856 namespaces[uri] = prefix
872 # populate qname and namespaces table
897 return qnames, namespaces
899 def _serialize_xml(write, elem, encoding, qnames, namespaces):
916 if items or namespaces:
917 if namespaces:
918 for v, k in sorted(namespaces.items(),
954 def _serialize_html(write, elem, encoding, qnames, namespaces):
971 if items or namespaces:
972 if namespaces:
973 for v, k in sorted(namespaces.items(),