updated template code in tag_view.xml

Added xpath, foreach tag. Added the attribute tags, added the group