updated depreciated getAttributeNode