code: private static Element findElement(Document document, String name) {
          Element result = null;
  
          List<Element> elementList = getElements(document);
  
          for (Element element : elementList) {
              if (element.getAttribute("id").equalsIgnoreCase(name) == true) {
                  result = element;
                  break;
              }
          }
  
          return result;
      }
docs: Searches XML document and returns specified query as {@link Element}
  
  @param document document which would be read
  @param name     query name to search
  @return query as {@link Element}