code: private static List parseAttributes(Node root) throws ParsingException {
          List set = new ArrayList();
  
          // the Environment section is just a list of Attributes
          NodeList nodes = root.getChildNodes();
          for (int i = 0; i < nodes.getLength(); i++) {
              Node node = nodes.item(i);
              if (SunxacmlUtil.getNodeName(node).equals("Attribute"))
                  set.add(BasicAttribute.getInstance(node));
          }
  
          return set;
      }
docs: /*
  Helper method that parses a set of Attribute types. The Subject,
  Action and Environment sections all look like this.