Lines Matching refs:qnames
816 qnames, namespaces = _namespaces(
820 serialize(write, self._root, encoding, qnames, namespaces)
835 qnames = {None: None}
858 qnames[qname] = encode("%s:%s" % (prefix, tag))
860 qnames[qname] = encode(tag) # default element
868 qnames[qname] = encode(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, encoding, qnames, namespaces): argument
907 tag = qnames[tag]
912 _serialize_xml(write, e, encoding, qnames, None)
930 v = qnames[v.text]
933 write(" %s=\"%s\"" % (qnames[k], v))
939 _serialize_xml(write, e, encoding, qnames, None)
954 def _serialize_html(write, elem, encoding, qnames, namespaces): argument
962 tag = qnames[tag]
967 _serialize_html(write, e, encoding, qnames, None)
985 v = qnames[v.text]
989 write(" %s=\"%s\"" % (qnames[k], v))
998 _serialize_html(write, e, encoding, qnames, None)