public static void writeAttribute(final XMLStreamWriter writer,final String attributeName,final String[] value) throws XMLStreamException {
  if (value == null || value.length == 0) {
    return;
  }
  for (int i=0; i < value.length; i++) {
    writer.writeAttribute(attributeName,value[i]);
  }
}

public static void writeAttribute ( final XMLStreamWriter writer , final String attributeName , final String [ ] value ) throws XMLStreamException { if ( value == null || value . length == 0 ) { return ; } for ( int i = 0 ; i < value . length ; i ++ ) { writer . writeAttribute ( attributeName , value [ i ] ) ; } }
writes an attribute with the given name for each string in the given array .
