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.