(mentry)
| 54 | return newdata |
| 55 | |
| 56 | def buildxml(mentry): |
| 57 | tname, tcontent, tattr = mentry |
| 58 | if tname is None: |
| 59 | return "" |
| 60 | tag = [] |
| 61 | tag.append('<' + tname) |
| 62 | if tattr is not None: |
| 63 | for key in tattr: |
| 64 | val = tattr[key] |
| 65 | val = xmlencode(val); |
| 66 | tag.append(' ' + key + '="'+val+'"' ) |
| 67 | if tcontent is not None: |
| 68 | tag.append('>' + xmlencode(tcontent) + '</' + tname + '>\n') |
| 69 | else: |
| 70 | tag.append(' />\n') |
| 71 | return "".join(tag) |
| 72 | |
| 73 | def valid_id(id, idlst): |
| 74 | pos = 1 |
no test coverage detected