Lines Matching refs:qnames
774 qnames, namespaces = _namespaces(self._root, default_namespace)
776 serialize(write, self._root, qnames, namespaces,
842 qnames = {None: None}
862 qnames[qname] = "%s:%s" % (prefix, tag)
864 qnames[qname] = tag # default element
872 qnames[qname] = qname
880 if tag.text not in qnames:
883 if tag not in qnames:
890 if key not in qnames:
892 if isinstance(value, QName) and value.text not in qnames:
895 if isinstance(text, QName) and text.text not in qnames:
897 return qnames, namespaces
899 def _serialize_xml(write, elem, qnames, namespaces, argument
908 tag = qnames[tag]
913 _serialize_xml(write, e, qnames, None,
932 v = qnames[v.text]
935 write(" %s=\"%s\"" % (qnames[k], v))
941 _serialize_xml(write, e, qnames, None,
957 def _serialize_html(write, elem, qnames, namespaces, **kwargs): argument
965 tag = qnames[tag]
970 _serialize_html(write, e, qnames, None)
988 v = qnames[v.text]
992 write(" %s=\"%s\"" % (qnames[k], v))
1001 _serialize_html(write, e, qnames, None)