smartxml: fix wrapping root node