Render a {@link org.xml.sax.Attributes}.
if(o instanceof Attributes) {
StringBuffer sbuf = new StringBuffer();
Attributes a = (Attributes) o;
int len = a.getLength();
boolean first = true;
for(int i = 0; i < len; i++) {
if(first) {
first = false;
} else {
sbuf.append(", ");
}
sbuf.append(a.getQName(i));
sbuf.append('=");
sbuf.append(a.getValue(i));
}
return sbuf.toString();
} else {
return o.toString();
}