private void addArguments(final Node node,final List list){
  final NamedNodeMap map=node.getAttributes();
  if (map != null) {
    Collections.sort(list,new AttributeComparator());
    for (final Iterator iterator=list.iterator(); iterator.hasNext(); ) {
      final Attr attribute=(Attr)iterator.next();
      map.setNamedItem(attribute);
    }
  }
}

private void addArguments ( final Node node , final List list ) { final NamedNodeMap map = node . getAttributes ( ) ; if ( map != null ) { Collections . sort ( list , new AttributeComparator ( ) ) ; for ( final Iterator iterator = list . iterator ( ) ; iterator . hasNext ( ) ; ) { final Attr attribute = ( Attr ) iterator . next ( ) ; map . setNamedItem ( attribute ) ; } } }
adds the attributes specified in the list to the node , in ascending order of their names .
