@classmethod
def FromFile(cls, xml_file):
    """
        Creates an object from an XML file handle or file name
        """
    from xml.dom.minidom import parse
    dom = parse(xml_file)
    return cls(dom)
