Parse span elements.

Signed-off-by: cyberzhg <cyberzhg@gmail.com>