Revision 4031
Added by Aaron Marcuse-Kubitza over 12 years ago
xml_dom.py | ||
---|---|---|
177 | 177 |
if value_ is strings.none_str: value_ = None # text node's None |
178 | 178 |
return value_ |
179 | 179 |
|
180 |
def is_whitespace(node): return is_text_node(node) and node.nodeValue.isspace() |
|
180 |
def is_whitespace(node): |
|
181 |
return is_text_node(node) and (node.nodeValue == '' |
|
182 |
or node.nodeValue.isspace()) |
|
181 | 183 |
|
182 | 184 |
def set_value(node, value): |
183 | 185 |
value_node_ = value_node(node) |
Also available in: Unified diff
xml_dom.py: is_whitespace(): Also consider empty text nodes to be whitespace