forked from: XML appendChild

workaround...