smartxml: fix - adding nodes before/after root node is not allowed