mango.application.main_driver.xml_generator.checkXmlFromString

mango.application.main_driver.xml_generator.checkXmlFromString(xmlDocumentStr, parmSectName=None)[source]

Validates specified XML string by creating a xml.etree.ElementTree by calling xml.etree.ElementTree.fromstring(xmlDocumentStr).

Parameters:
  • xmlDocumentStr (str) – XML string to validate.
  • 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.checkXmlFromFile

Next topic

mango.application.main_driver.xml_generator.makeXmlDoc

This Page