mango.application.main_driver.xml_generator.checkXmlFromFile

mango.application.main_driver.xml_generator.checkXmlFromFile(xmlFileName, parmSectName=None)[source]

Reads entire file into string and calls checkXmlFromString to validate the XML.

Parameters:
  • xmlFileName (str) – XML string read from this file.
  • parmSectName (str) – If not None, checks that at least one of the analysis, inplace, creation or generator child nodes has a name attribute equal to the parmSectName.
Return type:

bool

Returns:

True if XML is valid.

Previous topic

mango.application.main_driver.xml_generator.getParmSectionName

Next topic

mango.application.main_driver.xml_generator.checkXmlFromString

This Page