Package libxml2dom :: Module svg :: Class SVGDocument
[show private | hide private]
[frames | no frames]

Type SVGDocument

 DocumentEvent --+
                 |
   EventSystem --+
                 |
   EventTarget --+
                 |
object --+       |
         |       |
      Node --+   |
             |   |
       SVGNode --+
                 |
     _Document --+
                 |
                SVGDocument


An SVG-specific document node.

Method Summary
  __init__(self, node, impl)
Initialise the document with the given 'node', implementation 'impl', and global (SVGGlobal) details.
    Inherited from SVGNode
  xpath(self, expr, variables, namespaces)
Evaluate the given 'expr' using the optional 'variables' and 'namespaces'.
    Inherited from Node
  __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)
    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)...
    Inherited from EventTarget
  addEventListener(self, type, listener, useCapture)
For the given event 'type', register the given 'listener' for events in the capture phase if 'useCapture' is a true value, or for events in the target and bubble phases otherwise.
  addEventListenerNS(self, namespaceURI, type, listener, useCapture, group)
For the given 'namespaceURI' and event 'type', register the given 'listener' for events in the capture phase if 'useCapture' is a true value, or for events in the target and bubble phases otherwise.
  dispatchEvent(self, evt)
For this node, dispatch event 'evt' to the registered listeners.
  removeEventListener(self, type, listener, useCapture)
For the given event 'type', deregister the given 'listener' for events in the capture phase if 'useCapture' is a true value, or for events in the target and bubble phases otherwise.
  removeEventListenerNS(self, namespaceURI, type, listener, useCapture)
For the given 'namespaceURI' and event 'type', deregister the given 'listener' for events in the capture phase if 'useCapture' is a true value, or for events in the target and bubble phases otherwise.
    Inherited from DocumentEvent
  canDispatch(self, namespaceURI, type)
  createEvent(self, eventType)
    Inherited from EventSystem
  sendEventToTarget(self, evt, target)
Send event 'evt' to the specified 'target' element.

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

Class Variable Summary
    Inherited from Node
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                                                                     

Method Details

__init__(self, node, impl)
(Constructor)

Initialise the document with the given 'node', implementation 'impl',
and global (SVGGlobal) details.
Overrides:
libxml2dom._Document.__init__

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