Refactored attribute name creation to use Node.applyPrefix(...)
Minor optimization for settting attribute values