Complete function add and remove xml node