Added method to get a nodes localname