def load_rules(specfile): rules = [] find_rules(xmlutil.parse(specfile), rules) return rules
def load(specfile): doc = xmlutil.parse(specfile) return loadFromDoc(doc, specfilename=specfile)