smartxml: fixing text node creation