Added method to get a nodes localname

Added method to retrieve the localname for a node from a given path.
there should be a blank line after the main comment line.