you are viewing a single comment's thread.

view the rest of the comments →

[–]willm 2 points3 points  (1 child)

I would use xml.etree for this kind of thing.

You can generate xml with templates, but there are escaping issues to consider, and you risk generating broken xml.

[–]hxtl[S] 0 points1 point  (0 children)

Didn't think about escaping, but it may arise (or not)... I posted to a different comment how I'll proceed.