This is a small script that will remove all children of a XULElement:

var elem = document.getElementById('my_element');
while (elem.firstChild)
elem.removeChild(elem.firstChild);