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

Class Element

source code

object --+
         |
        Element

An XML element.

Instance Methods
 
__init__(self, uri, name, attrs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
str
__str__(self)
str(x)
source code
str
getAttribute(self, name) source code
 
toDOM(self, doc, prefixes)
Create a DOM Element for this qdom.Element.
source code

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

Instance Variables
{str: str} attrs
the element's attributes (key is in the form [namespace " "] localName)
[Element] childNodes
children
str content
the text content
str name
the element's localName
str uri
the element's namespace
Properties

Inherited from object: __class__

Method Details

__init__(self, uri, name, attrs)
(Constructor)

source code 

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

Parameters:
  • attrs ({str: str})
  • uri (str)
  • name (str)
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

str(x)

Returns: str
Overrides: object.__str__

getAttribute(self, name)

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

toDOM(self, doc, prefixes)

source code 

Create a DOM Element for this qdom.Element.

Parameters:
  • doc - document to use to create the element
  • prefixes (Prefixes)
Returns:
the new element