def ReadTree(self,tree):
# Загрузка из дерева etree.#
- gpx_doc = tree;
- root = gpx_doc.getroot()
+ root = tree
# Test if this is a GPX file or not and if it's version 1.1
if root.tag == "{http://www.topografix.com/GPX/1/1}gpx" and root.get("version") == "1.1":