Go to the documentation of this file.
    8 import elementtree.ElementTree 
as ET
 
   15 tree = ET.parse(
"./parameters.xml")
 
   19 if root.tag != 
"ParameterList":
 
   20   print "Error: Root tag is not ParameterList" 
   25   if node.tag == 
"Validators":
 
   29 if len(validators) == 0:
 
   30   print "Error: This is not a valid Zoltan2 parameter list." 
   38 for node 
in validators:
 
   39   id = node.get(
"validatorId")
 
   41     print "Error: Validator ID ",id,
" is repeated." 
   54   if node.tag != 
"Parameter":
 
   56   paramName = node.get(
"name")
 
   57   paramId = node.get(
"id")
 
   58   validatorId = node.get(
"validatorId")
 
   61     print "Error: Parameter id ",paramId,
" is reused for ",paramName
 
   65   idList.append(paramId)
 
   67   if validatorId 
not in vals.keys():
 
   68     print "Error: Parameter ",paramName,
" has invalid validator ID ",validatorId