From e853a9d4831ae95363ce5fdcce71cbb23aff2269 Mon Sep 17 00:00:00 2001 From: bbahnsen Date: Sat, 16 Dec 2006 06:39:33 +0000 Subject: Add a far maker git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2103 6f19259b-4bc3-4df7-8a09-765794883524 --- Tools/Python/XmlRoutines.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Tools/Python/XmlRoutines.py') 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__': -- cgit v1.2.3