public static Set parseResponseAttributes(Node pNode) throws PolicyException {
  Set nodeSet=XMLUtils.getChildNodes(pNode,ATTRIBUTE);
  if (nodeSet == null) {
    debug.error("parseResponseAttributes: " + " missing element " + ATTRIBUTE);
    String objs[]={ATTRIBUTE};
    throw new PolicyException(ResBundleUtils.rbName,"missing_element",objs,null);
  }
  HashSet attrs=new HashSet();
  Node node=null;
  Iterator nodes=nodeSet.iterator();
  while (nodes.hasNext()) {
    node=(Node)nodes.next();
    String attrName=XMLUtils.getNodeAttributeValue(node,ATTRIBUTE_NAME);
    if (attrName == null) {
      debug.error("parseResponseAttributes: " + " missing attribute " + ATTRIBUTE_NAME);
      String objs[]={ATTRIBUTE_NAME};
      throw new PolicyException(ResBundleUtils.rbName,"missing_attribute",objs,null);
    }
    attrs.add(attrName);
  }
  return attrs;
}

public static Set parseResponseAttributes ( Node pNode ) throws PolicyException { Set nodeSet = XMLUtils . getChildNodes ( pNode , ATTRIBUTE ) ; if ( nodeSet == null ) { debug . error ( "parseResponseAttributes: " + " missing element " + ATTRIBUTE ) ; String objs [ ] = { ATTRIBUTE } ; throw new PolicyException ( ResBundleUtils . rbName , "missing_element" , objs , null ) ; } HashSet attrs = new HashSet ( ) ; Node node = null ; Iterator nodes = nodeSet . iterator ( ) ; while ( nodes . hasNext ( ) ) { node = ( Node ) nodes . next ( ) ; String attrName = XMLUtils . getNodeAttributeValue ( node , ATTRIBUTE_NAME ) ; if ( attrName == null ) { debug . error ( "parseResponseAttributes: " + " missing attribute " + ATTRIBUTE_NAME ) ; String objs [ ] = { ATTRIBUTE_NAME } ; throw new PolicyException ( ResBundleUtils . rbName , "missing_attribute" , objs , null ) ; } attrs . add ( attrName ) ; } return attrs ; }
parses an xml node which represents a collection of user response attributes and returns a set which contains the names of these attributes
