legacy/src/main/java/thredds/catalog/parser/jdom/InvCatalogFactory10.java
protected InvDatasetImpl readDataset(InvCatalogImpl catalog, InvDatasetImpl parent, Element dsElem, URI base) {

    // deal with aliases
    String name = dsElem.getAttributeValue("name");
    String alias = dsElem.getAttributeValue("alias");
    if (alias != null) {
      InvDatasetImpl ds = (InvDatasetImpl) catalog.findDatasetByID(alias);
      if (ds == null) {
        factory.appendErr(" ** Parse error: dataset named " + name + " has illegal alias = " + alias + "\n");
        return null;
      }
      return new InvDatasetImplProxy(name, ds);
    }

    InvDatasetImpl dataset = new InvDatasetImpl(parent, name);
    readDatasetInfo(catalog, dataset, dsElem, base);

    if (InvCatalogFactory.debugXML) System.out.println(" Dataset added: " + dataset.dump());
    return dataset;
  }
protected InvDatasetImpl readDataset(InvCatalogImpl catalog, InvDatasetImpl parent, Element dsElem, URI base) {

    // deal with aliases
    String name = dsElem.getAttributeValue("name");
    String alias = dsElem.getAttributeValue("alias");
    if (alias != null) {
      InvDatasetImpl ds = (InvDatasetImpl) catalog.findDatasetByID(alias);
      if (ds == null) {
        factory.appendErr(" ** Parse error: dataset named " + name + " has illegal alias = " + alias + "\n");
        return null;
      }
      return new InvDatasetImplProxy(name, ds);
    }

    InvDatasetImpl dataset = new InvDatasetImpl(parent, name);
    readDatasetInfo(catalog, dataset, dsElem, base);

    if (InvCatalogFactory.debugXML) System.out.println(" Dataset added: " + dataset.dump());
    return dataset;
  }
read a dataset element