]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Python/XmlRoutines.py
Added some new field to the far template.
[mirror_edk2.git] / Tools / Python / XmlRoutines.py
index 6968f14aefa03f93ce847193726aa3d1fcdb6b59..9d1ff4a0e32cb43f2fc04d3d6b95b1f04cfe6025 100755 (executable)
@@ -44,7 +44,7 @@ def XmlAttribute (Dom, String):
 
 def XmlTopTag(Dom):
   """Return the name of the Root or top tag in the XML tree."""
-  return Dom.firstChild.nodeName
+  return Dom.documentElement.nodeName
   
 
 # This acts like the main() function for the script, unless it is 'import'ed into another