@Override public String toString(){
  StringBuilder buf=new StringBuilder();
  for (  NameValuePair pair : nameValuePairList) {
    buf.append(' ');
    buf.append(pair.getName());
    buf.append('=');
    buf.append('"');
    buf.append(getQuotedAttributeValue(pair.getValue()));
    buf.append('"');
  }
  return buf.toString();
}

@ Override public String toString ( ) { StringBuilder buf = new StringBuilder ( ) ; for ( NameValuePair pair : nameValuePairList ) { buf . append ( ' ' ) ; buf . append ( pair . getName ( ) ) ; buf . append ( '=' ) ; buf . append ( '"' ) ; buf . append ( getQuotedAttributeValue ( pair . getValue ( ) ) ) ; buf . append ( '"' ) ; } return buf . toString ( ) ; }
return the attribute list as a string which can be directly output as part of an xml tag .
