xml-rewrite-N.py only works on attributes so I think it's easiest to just have some inline python for this. Regards, Petteri