code: private static String getIdFromElement(XmlElement element) {
          for (Attribute attribute : element.getAttributes()) {
              if (attribute.getName().equals("id")) {
                  return attribute.getValue();
              }
          }
          return null;
      }
docs: 找出节点ID值
  @param element
  @return