code: private boolean isXmlSchemaRepository(Element element) {
          String schemaRepositoryType = element.getAttribute("type");
          return StringUtils.isEmpty(schemaRepositoryType) || "xml".equals(schemaRepositoryType);
      }
docs: Decides whether the given element is a xml schema repository.
  
  Note:
  If the "type" attribute has not been set, the repository is interpreted as a xml repository by definition.
  This is important to guarantee downwards compatibility.
  @param element The element to be checked
  @return Whether the given element is a xml schema repository