Please, follow by this link (my example):
http://jsfiddle.net/s8EG4/2/
And read please documentation:
http://www.w3.org/TR/SVG/text.html#TSpanElement
Please take attention for example 2 (svg.class === example-two). You should start net element from previous element just close. Like inline elements.