if (name.equalsIgnoreCase(child.getLocalName()))
String childName = child.getLocalName(); if (childName == null) { childName = child.getLocalName(); } if (name.equalsIgnoreCase(childName))
  protected Node getChildElement(String name)  {    for (Node child = getFirstChild(); child != null;         child = child.getNextSibling())      {        if (name.equalsIgnoreCase(child.getLocalName()))          {            return child;          }      }    return null;  }