code: public String getLocalNameOfNode(Node n)
    {
  
      String qname = n.getNodeName();
      int index = qname.indexOf(':');
  
      return (index < 0) ? qname : qname.substring(index + 1);
    }
docs: Returns the local name of the given node. If the node's name begins
  with a namespace prefix, this is the part after the colon; otherwise
  it's the full node name.
  
  @param n the node to be examined.
  
  @return String containing the Local Name