Adding attribute support.
Reads attributes, and fires element-start and element-end events.