Module libxml2 :: Class xmlCore
[hide private]
[frames] | no frames]

Class xmlCore

source code

Known Subclasses:
xmlNode

Instance Methods [hide private]
 
__init__(self, _obj=None) source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
__hash__(self) source code
 
__str__(self) source code
 
get_parent(self) source code
 
get_children(self) source code
 
get_last(self) source code
 
get_next(self) source code
 
get_properties(self) source code
 
get_prev(self) source code
 
get_content(self) source code
 
getContent(self) source code
 
get_name(self) source code
 
get_type(self) source code
 
get_doc(self) source code
 
__getattr__(self, attr) source code
 
serialize(self, encoding=None, format=0) source code
 
saveTo(self, file, encoding=None, format=0) source code
 
c14nMemory(self, nodes=None, exclusive=0, prefixes=None, with_comments=0) source code
 
c14nSaveTo(self, file, nodes=None, exclusive=0, prefixes=None, with_comments=0) source code
 
xpathEval(self, expr) source code
 
xpathEval2(self, expr) source code
 
removeNsDef(self, href)
Remove a namespace definition from a node.
source code
 
walk_depth_first(self) source code
 
walk_breadth_first(self) source code
 
__iter__(self) source code
 
free(self) source code
Properties [hide private]
  parent
Parent node
  children
First child node
  last
Last sibling node
  next
Next sibling node
  prev
Previous sibling node
  properties
List of properies
  content
Content of this node
  name
Node name
  type
Node type
  doc
The document this node belongs to
Method Details [hide private]

removeNsDef(self, href)

source code 

Remove a namespace definition from a node. If href is None, remove all of the ns definitions on that node. The removed namespaces are returned as a linked list.

Note: If any child nodes referred to the removed namespaces, they will be left with dangling links. You should call renciliateNs() to fix those pointers.

Note: This method does not free memory taken by the ns definitions. You will need to free it manually with the freeNsList() method on the returns xmlNs object.

Property Details [hide private]

parent

Parent node
Get Method:
libxml2.xmlCore.get_parent(self)

children

First child node
Get Method:
libxml2.xmlCore.get_children(self)

last

Last sibling node
Get Method:
libxml2.xmlCore.get_last(self)

next

Next sibling node
Get Method:
libxml2.xmlCore.get_next(self)

prev

Previous sibling node
Get Method:
libxml2.xmlCore.get_prev(self)

properties

List of properies
Get Method:
libxml2.xmlCore.get_properties(self)

content

Content of this node
Get Method:
libxml2.xmlCore.get_content(self)

name

Node name
Get Method:
libxml2.xmlCore.get_name(self)

type

Node type
Get Method:
libxml2.xmlCore.get_type(self)

doc

The document this node belongs to
Get Method:
libxml2.xmlCore.get_doc(self)