summaryrefslogtreecommitdiff
path: root/Tools/Python/XmlRoutines.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/Python/XmlRoutines.py')
-rwxr-xr-xTools/Python/XmlRoutines.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tools/Python/XmlRoutines.py b/Tools/Python/XmlRoutines.py
index 20671ea407..6968f14aef 100755
--- a/Tools/Python/XmlRoutines.py
+++ b/Tools/Python/XmlRoutines.py
@@ -42,6 +42,11 @@ def XmlAttribute (Dom, String):
except:
return ''
+def XmlTopTag(Dom):
+ """Return the name of the Root or top tag in the XML tree."""
+ return Dom.firstChild.nodeName
+
+
# This acts like the main() function for the script, unless it is 'import'ed into another
# script.
if __name__ == '__main__':