Use tag name pattern resembling the XML standard

XML tag names containing "." (e.g. "<foo.bar>") aren't closed correctly ("</foo>"). Change the tag name pattern to (closely) resemble the official XML tag name definition.