Package libxml2dom :: Class Node
[show private | hide private]
[frames | no frames]

Type Node

object --+
         |
        Node

Known Subclasses:
Attribute, Document, SVGNode, XMPPNode

A DOM-style wrapper around libxml2mod objects.

Method Summary
  __init__(self, node, impl, ownerDocument)
  __eq__(self, other)
  __hash__(self)
  __ne__(self, other)
  appendChild(self, tmp)
  as_native_node(self)
  cloneNode(self, deep)
  createAttribute(self, name)
  createAttributeNS(self, ns, name)
  createCDATASection(self, value)
  createComment(self, value)
  createElement(self, name)
  createElementNS(self, ns, name)
  createTextNode(self, value)
  getAttribute(self, name)
  getAttributeNode(self, localName)
  getAttributeNodeNS(self, ns, localName)
  getAttributeNS(self, ns, localName)
  getElementById(self, identifier)
  getElementsByTagName(self, tagName)
  getElementsByTagNameNS(self, namespaceURI, localName)
  hasAttribute(self, name)
  hasAttributeNS(self, ns, localName)
  importNode(self, node, deep)
  insertBefore(self, tmp, oldNode)
  isSameNode(self, other)
  normalize(self)
  removeAttribute(self, name)
  removeAttributeNS(self, ns, localName)
  removeChild(self, tmp)
  replaceChild(self, tmp, oldNode)
  setAttribute(self, name, value)
  setAttributeNode(self, node)
  setAttributeNodeNS(self, node)
  setAttributeNS(self, ns, name, value)
  toFile(self, f, encoding, prettyprint)
  toStream(self, stream, encoding, prettyprint)
  toString(self, encoding, prettyprint)
  xpath(self, expr, variables, namespaces)
  _attributes(self)
  _childNodes(self)
  _doctype(self)
  _findId(self, declaration, identifier)
  _findIdValue(self, declaration, i)
  _firstChild(self)
  _lastChild(self)
  _localName(self)
  _namespaceURI(self)
  _nextSibling(self)
  _nodeName(self)
  _nodeType(self)
  _nodeValue(self)
  _normalize(self, text_nodes)
  _parentNode(self)
  _prefix(self)
  _previousSibling(self)
  _publicId(self)
  _setNodeValue(self, value)
  _systemId(self)
  _tagName(self)
  _textContent(self)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...

Property Summary
  attributes
  childNodes
  data
  doctype
  firstChild
  lastChild
  localName
  name
  namespaceURI
  nextSibling
  nodeName
  nodeType
  nodeValue
  parentNode
  prefix
  previousSibling
  publicId
  systemId
  tagName
  textContent
  value

Class Variable Summary
int ATTRIBUTE_NODE = 2                                                                     
int COMMENT_NODE = 8                                                                     
int DOCUMENT_NODE = 9                                                                     
int DOCUMENT_TYPE_NODE = 10                                                                    
int ELEMENT_NODE = 1                                                                     
dict entities = {}
int ENTITY_NODE = 6                                                                     
int ENTITY_REFERENCE_NODE = 5                                                                     
int NOTATION_NODE = 12                                                                    
dict notations = {}
int PROCESSING_INSTRUCTION_NODE = 7                                                                     
int TEXT_NODE = 3                                                                     

Property Details

attributes

Get Method:
_attributes(self)

childNodes

Get Method:
_childNodes(self)

data

Get Method:
_nodeValue(self)
Set Method:
_setNodeValue(self, value)

doctype

Get Method:
_doctype(self)

firstChild

Get Method:
_firstChild(self)

lastChild

Get Method:
_lastChild(self)

localName

Get Method:
_localName(self)

name

Get Method:
_nodeName(self)

namespaceURI

Get Method:
_namespaceURI(self)

nextSibling

Get Method:
_nextSibling(self)

nodeName

Get Method:
_nodeName(self)

nodeType

Get Method:
_nodeType(self)

nodeValue

Get Method:
_nodeValue(self)
Set Method:
_setNodeValue(self, value)

parentNode

Get Method:
_parentNode(self)

prefix

Get Method:
_prefix(self)

previousSibling

Get Method:
_previousSibling(self)

publicId

Get Method:
_publicId(self)

systemId

Get Method:
_systemId(self)

tagName

Get Method:
_tagName(self)

textContent

Get Method:
_textContent(self)

value

Get Method:
_nodeValue(self)
Set Method:
_setNodeValue(self, value)

Class Variable Details

ATTRIBUTE_NODE

Type:
int
Value:
2                                                                     

COMMENT_NODE

Type:
int
Value:
8                                                                     

DOCUMENT_NODE

Type:
int
Value:
9                                                                     

DOCUMENT_TYPE_NODE

Type:
int
Value:
10                                                                    

ELEMENT_NODE

Type:
int
Value:
1                                                                     

entities

Type:
dict
Value:
{}                                                                     

ENTITY_NODE

Type:
int
Value:
6                                                                     

ENTITY_REFERENCE_NODE

Type:
int
Value:
5                                                                     

NOTATION_NODE

Type:
int
Value:
12                                                                    

notations

Type:
dict
Value:
{}                                                                     

PROCESSING_INSTRUCTION_NODE

Type:
int
Value:
7                                                                     

TEXT_NODE

Type:
int
Value:
3                                                                     

Generated by Epydoc 2.1 on Tue Sep 18 23:37:02 2007 http://epydoc.sf.net