Table of Contents

Class: Element Zope-2.2.1-src/lib/python/OFS/ZDOM.py

Element interface

Base Classes   
Node
Methods   
getAttribute
getAttributeNode
getChildNodes
getElementsByTagName
getFirstChild
getLastChild
getNextSibling
getNodeName
getNodeType
getParentNode
getPreviousSibling
getTagName
  getAttribute 
getAttribute ( self,  name )

Retrieves an attribute value by name.

  getAttributeNode 
getAttributeNode ( self,  name )

Retrieves an Attr node by name or None if there is no such attribute.

  getChildNodes 
getChildNodes ( self )

Returns a NodeList that contains all children of this node. If there are no children, this is a empty NodeList

  getElementsByTagName 
getElementsByTagName ( self,  tagname )

Returns a NodeList of all the Elements with a given tag name in the order in which they would be encountered in a preorder traversal of the Document tree. Parameter: tagname The name of the tag to match (* = all tags). Return Value: A new NodeList object containing all the matched Elements.

  getFirstChild 
getFirstChild ( self )

The first child of this node. If there is no such node this returns None

  getLastChild 
getLastChild ( self )

The last child of this node. If there is no such node this returns None.

  getNextSibling 
getNextSibling ( self )

The node immediately preceding this node. If there is no such node, this returns None.

  getNodeName 
getNodeName ( self )

The name of this node, depending on its type

  getNodeType 
getNodeType ( self )

A code representing the type of the node.

  getParentNode 
getParentNode ( self )

The parent of this node. All nodes except Document DocumentFragment and Attr may have a parent

  getPreviousSibling 
getPreviousSibling ( self )

The node immediately preceding this node. If there is no such node, this returns None.

  getTagName 
getTagName ( self )

The name of the element


Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6