Add dependency checking to the Far install.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2279 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
bbahnsen
2007-01-22 19:41:08 +00:00
parent 2897231803
commit 24a86f9acc
3 changed files with 67 additions and 11 deletions

View File

@ -73,6 +73,13 @@ def XmlParseFile (FileName):
except:
return xml.dom.minidom.parseString('<empty/>')
def XmlParseString (Str):
"""Parse an XML string into a DOM and return the DOM."""
try:
return xml.dom.minidom.parseString(Str)
except:
return xml.dom.minidom.parseString('<empty/>')
def XmlParseFileSection (FileName, Tag):
"""Parse a section of an XML file into a DOM(Document Object Model) and return the DOM."""
try: