hmmmmm, sorry, I thought that ct.content was a DOMElement. My bad. So yes, I've just checked, delete works for xml list, I was totally wrong, forget my message I think I know where your problem is : you insert the value 'i' into the id child attribute.But i is not the value of your array(["2","1"], ...