s/element_name/name/ , fixes #42
diff --git a/xos/xos/xml_util.py b/xos/xos/xml_util.py
index d3aefb1..77b968f 100644
--- a/xos/xos/xml_util.py
+++ b/xos/xos/xml_util.py
@@ -113,8 +113,8 @@
specified root_node if specified, otherwise start at tree's root.
"""
- if not element_name.startswith('//'):
- element_name = '//' + element_name
+ if not name.startswith('//'):
+ name = '//' + name
elements = self.element.xpath('%s ' % name, namespaces=self.namespaces)
for element in elements:
parent = element.getparent()