Split add_tagname() function into add_tag() and add_tag_namespace()