def parseAndGenerate(outfileName, prefix, xschemaFileName, processIncludes, package_prefix, force_optional_choices): root = parse_schema(xschemaFileName, processIncludes, force_optional_choices) Clazz.extract_descriptors(xschemaFileName) if DEBUG: debug_show_root(root) createClazzes(prefix, root) if DEBUG: for key, value in Clazz.ClazzDict.items(): print 'clazzName: {} elt: {}'.format(key, value.schema_element) Clazz.generate(prefix, root, package_prefix)
def parseAndGenerate(outDirName, prefix, xschemaFileName, processIncludes, package_prefix, force_optional_choices): root = parse_schema(xschemaFileName, processIncludes, force_optional_choices) Clazz.extract_descriptors(xschemaFileName) if DEBUG: debug_show_root(root) createClazzes(prefix, root) if DEBUG: for key, value in Clazz.ClazzDict.items(): print 'clazzName: {} elt: {}'.format(key, value.schema_element) Clazz.generate(outDirName, prefix, root, parse_xsd.Targetnamespace, parse_xsd.SchemaVersion, package_prefix)