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__(self)
str(x)
source code
 
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

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

toDOM(self, doc, prefixes)

source code 

Create a DOM Element for this qdom.Element.

Parameters:
  • doc - document to use to create the element
Returns:
the new element