Class QName
object --+
         |
        QName
QName(text_or_uri_or_element, tag=None)
QName wrapper for qualified XML names.
Pass a tag name by itself or a namespace URI and a tag name to
create a qualified name.  Alternatively, pass an Element to
extract its tag name.
The text property holds the qualified name in
{namespace}tagname notation.  The namespace and
localname properties hold the respective parts of the tag
name.
You can pass QName objects wherever a tag name is expected.  Also,
setting Element text from a QName will resolve the namespace
prefix and set a qualified text value.  This is helpful in XML
languages like SOAP or XML-Schema that use prefixed tag names in
their text content.
    |  |  | 
    |  |  | 
    |  |  | 
    |  |  | 
    |  | 
        
          | __init__(text_or_uri_or_element,
        tag=None) x.__init__(...) initializes x; see help(type(x)) for signature
 |  |  | 
    |  |  | 
    |  |  | 
    |  |  | 
    | a new object with type S, a subtype of T |  | 
    |  |  | 
  
    | Inherited from object:__delattr__,__format__,__getattribute__,__reduce__,__reduce_ex__,__repr__,__setattr__,__sizeof__,__subclasshook__ | 
    |  | localname | 
    |  | namespace | 
    |  | text | 
  
    | Inherited from object:__class__ | 
| 
  hash(x)| __hash__(x)
    (Hashing function)
 |  |  
    Overrides:
        object.__hash__
     | 
 
| 
  x.__init__(...) initializes x; see help(type(x)) for signature| __init__(text_or_uri_or_element,
        tag=None)
    (Constructor)
 |  |  
    Overrides:
        object.__init__
     | 
 
| 
    Returns: a new object with type S, a subtype of TOverrides:
        object.__new__
     | 
 
| 
  str(x)| __str__(x)
    (Informal representation operator)
 |  |  
    Overrides:
        object.__str__
     |