]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Python/XmlRoutines.py
Add a far maker
[mirror_edk2.git] / Tools / Python / XmlRoutines.py
index 20671ea407dfdc5959f3ce0b391aade774bfe708..6968f14aefa03f93ce847193726aa3d1fcdb6b59 100755 (executable)
@@ -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__':