for fgc in repair_parts_fgc_group.find('./' + junk + 'some_fancy_code_and_stuff'):
groupcode = str(fgc[:2])
figref = str(fgc[2:4])
item_number = str(fgc[-4:])
repairPartsXml[noOfTables] += '<fncgrp>\n'
repairPartsXml[noOfTables] += '<fnccode>%s</fnccode>\n' % (groupcode)
repairPartsXml[noOfTables] += '<fnctitle>%s</fnctitle>\n' % (title)
repairPartsXml[noOfTables] += '<figref idref="%s">\n' % (figref)
repairPartsXml[noOfTables] += '</fncgrp>\n'
I am building a script that will convert the data in one xml file into another with a different DTD. There is a specific code that gets parsed into three different parts that I can use in the tags.
When I added this section in I received a error message stating
TypeError: not all arguments converted during string formatting
I am new to Python so if any one could help that would be great. Thank you.