Don't ignore attribute namespaces

will that be an option that you do not introduce the "isRoot" parameter, considering it makes the _getNames harder to understand now. If i understand the code right, here, calling the _getName essentially means "namespaces[element.name] = null;" and then invoke "generatedDoc.begin" with the parameter value of "element.name", right?