Package pywbem :: Module cim_xml :: Class CIMElement

[frames] | no frames]

# Class CIMElement

source code

        xml.dom.Node --+
                       |
    xml.dom.minidom.Node --+
                           |
     xml.dom.minidom.Element --+
                               |
                              CIMElement

Known Subclasses:
  - CIM
  - , CLASS
  - , CLASSNAME
  - , CLASSPATH
  - , DECLARATION
  - , DECLGROUP
  - , DECLGROUP_WITHNAME
  - , DECLGROUP_WITHPATH
  - , ERROR
  - , EXPMETHODCALL
  - , EXPMETHODRESPONSE
  - , EXPPARAMVALUE
  - , HOST
  - , IMETHODCALL
  - , IMETHODRESPONSE
  - , INSTANCE
  - , INSTANCENAME
  - , INSTANCEPATH
  - , IPARAMVALUE
  - , IRETURNVALUE
  - , KEYBINDING
  - , KEYVALUE
  - , LOCALCLASSPATH
  - , LOCALINSTANCEPATH
  - , LOCALNAMESPACEPATH
  - , MESSAGE
  - , METHOD
  - , METHODCALL
  - , METHODRESPONSE
  - , MULTIEXPREQ
  - , MULTIEXPRSP
  - , MULTIREQ
  - , MULTIRSP
  - , NAMESPACE
  - , NAMESPACEPATH
  - , OBJECTPATH
  - , PARAMETER
  - , PARAMETER_ARRAY
  - , PARAMETER_REFARRAY
  - , PARAMETER_REFERENCE
  - , PARAMVALUE
  - , PROPERTY
  - , PROPERTY_ARRAY
  - , PROPERTY_REFERENCE
  - , QUALIFIER
  - , QUALIFIER_DECLARATION
  - , RESPONSEDESTINATION
  - , RETURNVALUE
  - , SCOPE
  - , SIMPLEEXPREQ
  - , SIMPLEEXPRSP
  - , SIMPLEREQ
  - , SIMPLEREQACK
  - , SIMPLERSP
  - , TABLE
  - , TABLECELL_DECLARATION
  - , TABLECELL_REFERENCE
  - , TABLEROW
  - , TABLEROW_DECLARATION
  - , VALUE
  - , VALUE_ARRAY
  - , VALUE_NAMEDINSTANCE
  - , VALUE_NAMEDOBJECT
  - , VALUE_NULL
  - , VALUE_OBJECT
  - , VALUE_OBJECTWITHLOCALPATH
  - , VALUE_OBJECTWITHPATH
  - , VALUE_REFARRAY
  - , VALUE_REFERENCE

A base class that has a few bonus helper methods.

Instance Methods

setName(self, name) Set the NAME attribute of the element. | source code

setOptionalAttribute(self, name, value) Set an attribute if the value parameter is not None. | source code

appendOptionalChild(self, child) Append a child element which can be None. | source code

appendChildren(self, children) Append a list or tuple of children. | source code

Inherited from `xml.dom.minidom.Element`: `__init__`, `__repr__`, `getAttribute`, `getAttributeNS`, `getAttributeNode`, `getAttributeNodeNS`, `getElementsByTagName`, `getElementsByTagNameNS`, `hasAttribute`, `hasAttributeNS`, `hasAttributes`, `removeAttribute`, `removeAttributeNS`, `removeAttributeNode`, `removeAttributeNodeNS`, `setAttribute`, `setAttributeNS`, `setAttributeNode`, `setAttributeNodeNS`, `setIdAttribute`, `setIdAttributeNS`, `setIdAttributeNode`, `unlink`, `writexml`

Inherited from `xml.dom.minidom.Node`: `__nonzero__`, `appendChild`, `cloneNode`, `getInterface`, `getUserData`, `hasChildNodes`, `insertBefore`, `isSameNode`, `isSupported`, `normalize`, `removeChild`, `replaceChild`, `setUserData`, `toprettyxml`, `toxml`

Class Variables

Inherited from `xml.dom.minidom.Element`: `nodeType`, `nodeValue`, `schemaType`

Inherited from `xml.dom.minidom.Node`: `namespaceURI`, `nextSibling`, `ownerDocument`, `parentNode`, `prefix`, `previousSibling`

Inherited from `xml.dom.Node`: `ATTRIBUTE_NODE`, `CDATA_SECTION_NODE`, `COMMENT_NODE`, `DOCUMENT_FRAGMENT_NODE`, `DOCUMENT_NODE`, `DOCUMENT_TYPE_NODE`, `ELEMENT_NODE`, `ENTITY_NODE`, `ENTITY_REFERENCE_NODE`, `NOTATION_NODE`, `PROCESSING_INSTRUCTION_NODE`, `TEXT_NODE`

Properties
Inherited from `xml.dom.minidom.Element`: `attributes`, `localName` Inherited from `xml.dom.minidom.Node`: `firstChild`, `lastChild`