Project

General

Profile

« Previous | Next » 

Revision 2431

xml_dom.py: Added is_node()

View differences:

lib/xml_dom.py
24 24
    if sep != '': return base
25 25
    else: return name
26 26

  
27
##### Nodes
28

  
29
def is_node(value): return isinstance(value, Node)
30

  
27 31
##### Replacing a node
28 32

  
29 33
def remove(node): node.parentNode.removeChild(node)

Also available in: Unified diff