| 77 |
root.appendChild(child) |
root.appendChild(child) |
| 78 |
if tag == "binary" or tag[0:5] == "build": |
if tag == "binary" or tag[0:5] == "build": |
| 79 |
for item in re.split(", ?", m[tag]): |
for item in re.split(", ?", m[tag]): |
| 80 |
text = doc.createTextNode(item) |
# Take care of non-ascii, prevents troubles... |
| 81 |
|
text = doc.createTextNode(unicode(item,'ISO-8859-1','replace')) |
| 82 |
item_elt = doc.createElement("item") |
item_elt = doc.createElement("item") |
| 83 |
item_elt.appendChild(text) |
item_elt.appendChild(text) |
| 84 |
child.appendChild(item_elt) |
child.appendChild(item_elt) |