cdm/src/main/java/thredds/featurecollection/FeatureCollectionConfigBuilder.java
public FeatureCollectionConfig readConfigFromFile(String filename) {

    org.jdom2.Document doc;
    try {
      SAXBuilder builder = new SAXBuilder();
      doc = builder.build(filename);
    } catch (Exception e) {
      System.out.printf("Error parsing featureCollection %s err = %s", filename, e.getMessage());
      return null;
    }

    return readConfig(doc.getRootElement());
  }
public FeatureCollectionConfig readConfigFromFile(String filename) {

    org.jdom2.Document doc;
    try {
      SAXBuilder builder = new SAXBuilder();
      doc = builder.build(filename);
    } catch (Exception e) {
      System.out.printf("Error parsing featureCollection %s err = %s", filename, e.getMessage());
      return null;
    }

    return readConfig(doc.getRootElement());
  }
input is xml file with just the <featureCollection>