Added method to get a nodes localname

Added method to retrieve the localname for a node from a given path.