Package zeroinstall :: Package injector :: Module qdom :: Class Prefixes
[frames] | no frames]

Class Prefixes

source code

object --+
         |
        Prefixes

Keep track of namespace prefixes. Used when serialising a document.


Since: 0.54

Instance Methods
 
__init__(self, default_ns)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
str
get(self, ns) source code
 
setAttributeNS(self, elem, uri, localName, value) source code
 
createElementNS(self, doc, uri, localName) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, default_ns)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • default_ns (str)
Overrides: object.__init__

get(self, ns)

source code 
Parameters:
  • ns (str)
Returns: str

setAttributeNS(self, elem, uri, localName, value)

source code 
Parameters:
  • localName (str)
  • uri (str)
  • value (str)

createElementNS(self, doc, uri, localName)

source code 
Parameters:
  • localName (str)
  • uri (str)