Skip to content

Instantly share code, notes, and snippets.

import json
import io
from xml.dom import minidom
xmldoc = minidom.parse('values-ru/strings.xml')
itemlist = xmldoc.getElementsByTagName('string')
with io.open('app_ru.arb', 'w', encoding='utf8') as out_file:
out_file.write('{'.decode('utf-8'))
for s in itemlist: