Added namespaced tag name support to emitter; simplified attr checker.