Tag name and attribute name optimization