i've been playing around with python for some time now, and i decided to take vegaseat's advice to make a project of mine own.
the project consist of transforming an access database to xml, and then from xml generate some html files.
i exported one table, made some basic modifications on the xml with some small python scripts and now i've hit a wall.
basicaly i have one main table in which i have my main data and keys to other tables containing other relevant data.
after exporting my main table to xml i have in some tags only keys to other tables. and now i want to change those keys to meaningful data.
for instance: after exporting, i have a line like this: <tagZ>1</tagZ>, and i want to change it to be just an opening tag for something else; <tagQ attr1="xx" attr2="yy">.
the data which must be written in attr1 and attr2 depends upon the number (in this case number 1) inside the tag (tagZ).