smartxml: fixing changing tag of a root node