Project

General

Profile

« Previous | Next » 

Revision 29

Removed no longer necessary strip() from node value getter

View differences:

xml_util.py
65 65
    return True
66 66

  
67 67
def value(node):
68
    if node.firstChild != None: return node.firstChild.nodeValue.strip()
68
    if node.firstChild != None: return node.firstChild.nodeValue
69 69
    else: return node.nodeValue
70 70

  
71 71
def set_value(doc, node, value):

Also available in: Unified diff