Added text and tspan node handling