code: public String getLocalNameOfNode(Node n)
    {
  
      String name = n.getLocalName();
  
      return (null == name) ? super.getLocalNameOfNode(n) : name;
    }
docs: Returns the local name of the given node, as defined by the
  XML Namespaces specification. This is prepared to handle documents
  built using DOM Level 1 methods by falling back upon explicitly
  parsing the node name.
  
  @param n Node to be examined
  
  @return String containing the local name, or null if the node
  was not assigned a Namespace.