Optimized namespaceAttrs, removing one xpath query