code: public static Attribute getAttribute(XmlElement element, String name) {
          Iterator<Attribute> iterator = element.getAttributes().iterator();
          while (iterator.hasNext()) {
              Attribute attribute = iterator.next();
              if (attribute.getName().equals(name)) {
                  return attribute;
              }
          }
          return null;
      }
docs: 获取属性
  @param element
  @param name