opendap/src/main/java/opendap/dap/parsers/DDSXMLParser.java
private void parseAliases(Element e, String indent) throws DASException {

        parseLevel++;

        String subIndent = indent + "    ";
        if (_Debug) System.out.println(indent + "Parsing Aliases: ");

        if (_Debug)
            System.out.println(subIndent + "currentBT: " + currentBT.getTypeName() + " " + currentBT.getClearName());

        // Get the Alias elements
      for (Element aliasElement : e.getChildren("Alias", opendapNameSpace)) {
        String name = null;
        Attribute nameAttr = aliasElement.getAttribute("name");
        // no need to check that the getAttribute call worked because the Schema enforces
        // the presence of the "name" attribute for the <Alias> tag in the OPeNDAP namespace
        name = nameAttr.getValue();

        String attributeName = null;
        Attribute attributeAttr = aliasElement.getAttribute("Attribute");
        // no need to check that the getAttribute call worked because the Schema enforces
        // the presence of the "Attribute" attribute for the <Alias> tag in the OPeNDAP namespace
        attributeName = attributeAttr.getValue();

        if (_Debug) {
          System.out.println(subIndent + "The name '" + name +
                  "' is aliased to dds attribute: '" + attributeName + "'");
        }

        // Add the Alias to the appropriate container.
        if (currentAT == null)
          currentBT.addAttributeAlias(name, attributeName);
        else
          currentAT.addAlias(name, attributeName);

      }

        parseLevel--;
    }
private void parseAliases(Element e, String indent) throws DASException {

        parseLevel++;

        String subIndent = indent + "    ";
        if (_Debug) System.out.println(indent + "Parsing Aliases: ");

        if (_Debug)
            System.out.println(subIndent + "currentBT: " + currentBT.getTypeName() + " " + currentBT.getClearName());

        // Get the Alias elements
      for (Element aliasElement : e.getChildren("Alias", opendapNameSpace)) {
        String name = null;
        Attribute nameAttr = aliasElement.getAttribute("name");
        // no need to check that the getAttribute call worked because the Schema enforces
        // the presence of the "name" attribute for the <Alias> tag in the OPeNDAP namespace
        name = nameAttr.getValue();

        String attributeName = null;
        Attribute attributeAttr = aliasElement.getAttribute("Attribute");
        // no need to check that the getAttribute call worked because the Schema enforces
        // the presence of the "Attribute" attribute for the <Alias> tag in the OPeNDAP namespace
        attributeName = attributeAttr.getValue();

        if (_Debug) {
          System.out.println(subIndent + "The name '" + name +
                  "' is aliased to dds attribute: '" + attributeName + "'");
        }

        // Add the Alias to the appropriate container.
        if (currentAT == null)
          currentBT.addAttributeAlias(name, attributeName);
        else
          currentAT.addAlias(name, attributeName);

      }

        parseLevel--;
    }
Parse all of the Alias tags in this element of the XML document.
Add each one to the correct Attribute Table.