X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FPython%2FXmlRoutines.py;h=9d1ff4a0e32cb43f2fc04d3d6b95b1f04cfe6025;hp=6968f14aefa03f93ce847193726aa3d1fcdb6b59;hb=af2efcafd4974000a9dfe0f09aa78dcda70aba78;hpb=d56b1906f1f157735559397578474f8cc7d8fcdb;ds=sidebyside diff --git a/Tools/Python/XmlRoutines.py b/Tools/Python/XmlRoutines.py index 6968f14aef..9d1ff4a0e3 100755 --- a/Tools/Python/XmlRoutines.py +++ b/Tools/Python/XmlRoutines.py @@ -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