Example #1
0
 def loadFromXML(xmlRoot, vocabulary, namespace, version):
     if version == "0.1":
         automata_type = xmlRoot.get("type")
         from netzob.Common.MMSTD.MMSTD import MMSTD
         if automata_type == MMSTD.TYPE:
             automata = MMSTD.loadFromXML(xmlRoot, vocabulary, namespace, version)
             return automata
         else:
             logging.warn("The provided type of automata (" + automata_type + ") cannot be parsed.")
     return None
Example #2
0
 def loadFromXML(xmlRoot, vocabulary, namespace, version):
     if version == "0.1":
         automata_type = xmlRoot.get("type")
         from netzob.Common.MMSTD.MMSTD import MMSTD
         if automata_type == MMSTD.TYPE:
             automata = MMSTD.loadFromXML(xmlRoot, vocabulary, namespace,
                                          version)
             return automata
         else:
             logging.warn("The provided type of automata (" +
                          automata_type + ") cannot be parsed.")
     return None