Lines Matching defs:prefix
41 prefix = EMPTY_PREFIX # non-null only for NS elements and attributes
356 prefix=None):
360 self._prefix = prefix
404 def _set_prefix(self, prefix):
406 if prefix == "xmlns":
409 "illegal use of 'xmlns' prefix for the wrong namespace")
410 self._prefix = prefix
411 if prefix is None:
414 newName = "%s:%s" % (prefix, self.localName)
419 prefix = property(_get_prefix, _set_prefix)
665 __slots__=('ownerDocument', 'parentNode', 'tagName', 'nodeName', 'prefix',
681 def __init__(self, tagName, namespaceURI=EMPTY_NAMESPACE, prefix=None,
685 self.prefix = prefix
760 prefix, localname = _nssplit(qualifiedName)
763 attr = Attr(qualifiedName, namespaceURI, localname, prefix)
772 if attr.prefix != prefix:
773 attr.prefix = prefix
1320 prefix, localname = _nssplit(qualifiedName)
1459 prefix, localname = _nssplit(qualifiedName)
1460 if prefix == "xml" \
1462 raise xml.dom.NamespaceErr("illegal use of 'xml' prefix")
1463 if prefix and not namespaceURI:
1465 "illegal use of prefix without namespaces")
1716 prefix, localName = _nssplit(qualifiedName)
1717 e = Element(qualifiedName, namespaceURI, prefix)
1722 prefix, localName = _nssplit(qualifiedName)
1723 a = Attr(qualifiedName, namespaceURI, localName, prefix)
1842 prefix, localName = name.split(':', 1)
1843 if ( prefix == "xmlns"
1846 "illegal use of 'xmlns' prefix")
1853 prefix = None
1856 prefix = None
1865 n.prefix = prefix