def find_xml_generator(name="<STR_LIT>"):
if sys.version_info[:<NUM_LIT:2>] >= (<NUM_LIT:3>, <NUM_LIT:3>):<EOL><INDENT>path = _find_xml_generator_for_python_greater_equals_33(name)<EOL><DEDENT>else:<EOL><INDENT>path = _find_xml_generator_for_legacy_python(name)<EOL><DEDENT>if path == "<STR_LIT>" or path is None:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>return path.rstrip(), name<EOL>
Try to find a c++ parser (xml generator)

Args:
    name (str): name of the c++ parser (e.g. castxml)

Returns:
    path (str), name (str): path to the xml generator and it's name


If no c++ parser is found the function raises an exception.
pygccxml does currently only support castxml as c++ parser.