diff options
author | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-16 06:39:33 +0000 |
---|---|---|
committer | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-16 06:39:33 +0000 |
commit | e853a9d4831ae95363ce5fdcce71cbb23aff2269 (patch) | |
tree | a21188fcb0911fe246c22d3cf487ce3f709fa914 /Tools/Python/XmlRoutines.py | |
parent | ddb3d91caf129581e6686cd5127ca3517faca16e (diff) | |
download | edk2-platforms-e853a9d4831ae95363ce5fdcce71cbb23aff2269.tar.xz |
Add a far maker
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2103 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Python/XmlRoutines.py')
-rwxr-xr-x | Tools/Python/XmlRoutines.py | 5 |
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__': |