In your script.py file import the LanguageXMLConverter python Class, and the model of object reflecting the schema of the XML. below the exemple file :
from classes.LanguageXMLConverter import LanguageXMLConverter
from models.resources import resources
"""
Example #1 generate Italian property language file
"""
italian = LanguageXMLConverter(resources, ['example/input/values-it/ads.xml', 'example/input/values-it/extra.xml', 'example/input/values-it/strings.xml', 'example/input/values-it/strings2.xml'])
italian.generateOutputFile('example/output/Italian.txt') #generate property type language output file
"""
Example #2 generate English property language file
"""
english = LanguageXMLConverter(resources) # init an instance of Language XML Converter with empty input file paths array
# add input file paths to the instance
english.addInputXMLFile('example/input/values/ads.xml')
english.addInputXMLFile('example/input/values/extra.xml')
english.addInputXMLFile('example/input/values/strings.xml')
english.addInputXMLFile('example/input/values/strings2.xml')
english.generateOutputFile('example/output/English.txt') #generate property type language output file
Open the command line tool in the main directory, and run the main python script. (Python 2.7
python script.py